summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/address.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp
index 56c49a83f..e61024111 100644
--- a/src/network/core/address.cpp
+++ b/src/network/core/address.cpp
@@ -125,8 +125,8 @@ bool NetworkAddress::IsInNetmask(char *netmask)
break;
case AF_INET6:
- ip = (uint32*)((struct sockaddr_in6*)&this->address)->sin6_addr.s6_addr32;
- mask = (uint32*)((struct sockaddr_in6*)&mask_address.address)->sin6_addr.s6_addr32;
+ ip = (uint32*)&((struct sockaddr_in6*)&this->address)->sin6_addr;
+ mask = (uint32*)&((struct sockaddr_in6*)&mask_address.address)->sin6_addr;
break;
default: