mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix bug.
This makes it build on OS X again...
This commit is contained in:
parent
59170c7d01
commit
bcba9b957b
@ -456,7 +456,7 @@ void addto_lists(DHT *dht, IP_Port ip_port, uint8_t *client_id)
|
|||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
||||||
/* convert IPv4-in-IPv6 to IPv4 */
|
/* convert IPv4-in-IPv6 to IPv4 */
|
||||||
if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6)) {
|
if ((ip_port.ip.family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&ip_port.ip.ip6.in6_addr)) {
|
||||||
ip_port.ip.family = AF_INET;
|
ip_port.ip.family = AF_INET;
|
||||||
ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3];
|
ip_port.ip.ip4.uint32 = ip_port.ip.ip6.uint32[3];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user