mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15951) -Fix (r15946) [FS#2803]: ofcourse a couple of OSes/compilers do not provide a nice 'interface', so we have to do it the ugly way.
This commit is contained in:
parent
5eed35ef54
commit
616cac0c54
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user