Fixed issue.

This commit is contained in:
irungentoo 2014-04-25 17:31:04 -04:00
parent 45d122e2cb
commit 09aa97f712
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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);