aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
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 05b94de8b..171f7368a 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -108,7 +108,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
continue;
if (!BindPort(tag, bindspec, old_ports, protocol))
- failed_ports.emplace_back(errno, bindspec, tag);
+ failed_ports.emplace_back(strerror(errno), bindspec, tag);
else
bound++;
}
@@ -141,7 +141,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports)
bindspec.from_unix(fullpath);
if (!BindPort(tag, bindspec, old_ports, 0))
- failed_ports.emplace_back(errno, bindspec, tag);
+ failed_ports.emplace_back(strerror(errno), bindspec, tag);
else
bound++;
}