aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index ca432db6f..f5f1cc820 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -65,11 +65,8 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
size_t bound = 0;
std::vector<ListenSocket*> old_ports(ports.begin(), ports.end());
- ConfigTagList tags = ServerInstance->Config->ConfTags("bind");
- for (ConfigIter i = tags.first; i != tags.second; ++i)
+ for (auto& [_, tag] : ServerInstance->Config->ConfTags("bind"))
{
- ConfigTag* tag = i->second;
-
// Are we creating a TCP/IP listener?
const std::string address = tag->getString("address");
const std::string portlist = tag->getString("port");