diff options
| author | 2023-04-28 19:14:59 +0100 | |
|---|---|---|
| committer | 2023-04-28 19:14:59 +0100 | |
| commit | 472c76132d5cc672abb485b2d02efd7146189fb4 (patch) | |
| tree | a352ff80d7f1f76063ced10f2fd6f69911a5b182 /src/socket.cpp | |
| parent | Remove a renamed module that snuck back in during a merge. (diff) | |
Fix binding to IPv6 endpoints on Windows.
sockaddr_in6 has additional members on Windows that need to be
zeroed.
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index d3dea3c72..2dc94b85f 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -82,7 +82,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) this->Logs.Warning("SOCKET", "Using 4in6 (::ffff:) isn't recommended. You should bind IPv4 addresses directly instead."); // Try to parse the bind address. - irc::sockets::sockaddrs bindspec(false); + irc::sockets::sockaddrs bindspec(true); if (!bindspec.from_ip(address)) { failed_ports.emplace_back("Address is not valid: " + address, tag); |
