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:
parent
a11d526110
commit
d027fc9a88
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue