From 3ad56ad798f0315aca6ff3a7862cbab2048dca7c Mon Sep 17 00:00:00 2001 From: Fred Nicolson Date: Thu, 11 May 2017 14:46:47 +0100 Subject: [PATCH] Cast fix --- src/TcpListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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