Fix compilation

This commit is contained in:
Lynix 2018-04-01 20:52:52 +02:00
parent 715729fc02
commit eeba7f96a0
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ namespace Nz
{ {
NazaraAssert(handle != InvalidHandle, "Invalid handle"); NazaraAssert(handle != InvalidHandle, "Invalid handle");
int option = broadcasting; int option = ipv6Only;
if (setsockopt(handle, SOL_SOCKET, IPV6_V6ONLY, reinterpret_cast<const char*>(&option), sizeof(option)) == SOCKET_ERROR) if (setsockopt(handle, SOL_SOCKET, IPV6_V6ONLY, reinterpret_cast<const char*>(&option), sizeof(option)) == SOCKET_ERROR)
{ {
if (error) if (error)