From 472c76132d5cc672abb485b2d02efd7146189fb4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 28 Apr 2023 19:14:59 +0100 Subject: Fix binding to IPv6 endpoints on Windows. sockaddr_in6 has additional members on Windows that need to be zeroed. --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/socket.cpp') 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); -- cgit v1.3.1-10-gc9f91