mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed issue.
This commit is contained in:
parent
45d122e2cb
commit
09aa97f712
|
@ -172,7 +172,7 @@ int set_socket_nosigpipe(sock_t sock)
|
|||
*/
|
||||
int set_socket_dualstack(sock_t sock)
|
||||
{
|
||||
char ipv6only = 0;
|
||||
int ipv6only = 0;
|
||||
socklen_t optsize = sizeof(ipv6only);
|
||||
int res = getsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &optsize);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user