1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Enable ipv6_server by default

This commit is contained in:
sfan5 2025-01-31 17:14:37 +01:00
parent a11d526110
commit d027fc9a88
3 changed files with 6 additions and 4 deletions

View file

@ -128,7 +128,8 @@ void UDPSocket::Bind(Address addr)
if (setsockopt(m_handle, IPPROTO_IPV6, IPV6_V6ONLY,
reinterpret_cast<char *>(&value), sizeof(value)) != 0) {
auto errmsg = SOCKET_ERR_STR(LAST_SOCKET_ERR());
errorstream << "Failed to disable V6ONLY: " << errmsg << std::endl;
errorstream << "Failed to disable V6ONLY: " << errmsg
<< "\nTry disabling ipv6_server to fix this." << std::endl;
throw SocketException(errmsg);
}
}