diff --git a/src/TcpListener.cpp b/src/TcpListener.cpp index 16388b5..2d4e9bf 100644 --- a/src/TcpListener.cpp +++ b/src/TcpListener.cpp @@ -43,7 +43,7 @@ namespace fr //If it's an IPv6 interface, attempt to allow IPv4 connections if(c->ai_family == AF_INET6) { - setsockopt(socket_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&no, sizeof(no)); + setsockopt(socket_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&no, sizeof(no)); } //Attempt to bind