summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-12-11 12:31:21 +0000
committerPeter Powell <petpow@saberuk.com>2019-12-12 14:37:38 +0000
commitce7979bd7d6278bc1b67cf46a73a3d23e02a6ae5 (patch)
treeb0e8ac9caac91b330e65981f6be4df7642eba916 /src/socket.cpp
parenta1c127aef6e1833cb480a8f37f75029c46256661 (diff)
Extract port binding code to a function and improve output.
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 736e09486..64dc7ef25 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -86,7 +86,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
continue;
if (!BindPort(tag, bindspec, old_ports))
- failed_ports.push_back(std::make_pair(bindspec, errno));
+ failed_ports.push_back(FailedPort(errno, bindspec, tag));
else
bound++;
}
@@ -120,7 +120,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
irc::sockets::untosa(fullpath, bindspec);
if (!BindPort(tag, bindspec, old_ports))
- failed_ports.push_back(std::make_pair(bindspec, errno));
+ failed_ports.push_back(FailedPort(errno, bindspec, tag));
else
bound++;
}