diff options
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 7813ab03..6a7661c4 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -172,7 +172,7 @@ int set_socket_nosigpipe(sock_t sock) | |||
172 | */ | 172 | */ |
173 | int set_socket_dualstack(sock_t sock) | 173 | int set_socket_dualstack(sock_t sock) |
174 | { | 174 | { |
175 | char ipv6only = 0; | 175 | int ipv6only = 0; |
176 | socklen_t optsize = sizeof(ipv6only); | 176 | socklen_t optsize = sizeof(ipv6only); |
177 | int res = getsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &optsize); | 177 | int res = getsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &optsize); |
178 | 178 | ||