mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-30 06:21:14 +00:00
Correctly set IPV6_V6ONLY
setsockopt level for v6 options is IPPROTO_IPV6.
This commit is contained in:
parent
a1a58143ec
commit
f8a749be09
1 changed files with 1 additions and 1 deletions
|
@ -788,7 +788,7 @@ static SOCKET_TYPE UDP_Bind(int family, struct sockaddr *addr, socklen_t addrlen
|
||||||
// make it IPv6 ony
|
// make it IPv6 ony
|
||||||
opt = true;
|
opt = true;
|
||||||
opts = (socklen_t)sizeof(opt);
|
opts = (socklen_t)sizeof(opt);
|
||||||
if (setsockopt(s, SOL_SOCKET, IPV6_V6ONLY, (char *)&opt, opts))
|
if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&opt, opts))
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_WARNING, M_GetText("Could not limit IPv6 bind\n")); // I do not care anymore
|
CONS_Alert(CONS_WARNING, M_GetText("Could not limit IPv6 bind\n")); // I do not care anymore
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue