1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Fix regression in CreateSocket (#14131)

This commit is contained in:
Ted John
2021-02-21 03:58:34 +00:00
committed by GitHub
parent 345c436f19
commit e28c23f10f

View File

@@ -853,12 +853,12 @@ private:
}
// Turn off IPV6_V6ONLY so we can accept both v4 and v6 connections
if (!SetOption(_socket, IPPROTO_IPV6, IPV6_V6ONLY, false))
if (!SetOption(sock, IPPROTO_IPV6, IPV6_V6ONLY, false))
{
log_verbose("setsockopt(socket, IPV6_V6ONLY) failed: %d", LAST_SOCKET_ERROR());
}
if (!SetOption(_socket, SOL_SOCKET, SO_REUSEADDR, true))
if (!SetOption(sock, SOL_SOCKET, SO_REUSEADDR, true))
{
log_verbose("setsockopt(socket, SO_REUSEADDR) failed: %d", LAST_SOCKET_ERROR());
}