mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +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
d5e4f8152f
commit
3ce836c4af
@ -125,8 +125,8 @@ bool NetworkAddress::IsInNetmask(char *netmask)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
ip = (uint32*)((struct sockaddr_in6*)&this->address)->sin6_addr.s6_addr32;
|
ip = (uint32*)&((struct sockaddr_in6*)&this->address)->sin6_addr;
|
||||||
mask = (uint32*)((struct sockaddr_in6*)&mask_address.address)->sin6_addr.s6_addr32;
|
mask = (uint32*)&((struct sockaddr_in6*)&mask_address.address)->sin6_addr;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user