diff options
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 484dcf81d..d3dea3c72 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -55,7 +55,7 @@ bool InspIRCd::BindPort(const std::shared_ptr<ConfigTag>& tag, const irc::socket if (!ll->HasFd()) { ServerInstance->Logs.Normal("SOCKET", "Failed to listen on {} from tag at {}: {}", - sa.str(), tag->source.str(), strerror(errno)); + sa.str(), tag->source.str(), SocketEngine::LastError()); delete ll; return false; } @@ -152,7 +152,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) for (const auto protocol : protocols) { if (!BindPort(tag, bindspec, old_ports, protocol)) - failed_ports.emplace_back(strerror(errno), bindspec, tag); + failed_ports.emplace_back(SocketEngine::LastError(), bindspec, tag); else bound++; } @@ -184,7 +184,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) bindspec.from_unix(fullpath); if (!BindPort(tag, bindspec, old_ports, 0)) - failed_ports.emplace_back(strerror(errno), bindspec, tag); + failed_ports.emplace_back(SocketEngine::LastError(), bindspec, tag); else bound++; } |
