diff options
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 11f25880..32a1d96d 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -564,7 +564,7 @@ static int sendnodes(DHT *dht, IP_Port ip_port, uint8_t *public_key, uint8_t *cl | |||
564 | 564 | ||
565 | if ((node_ip->family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&node_ip->ip6)) | 565 | if ((node_ip->family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&node_ip->ip6)) |
566 | /* embedded IPv4-in-IPv6 address: return it in regular sendnodes packet */ | 566 | /* embedded IPv4-in-IPv6 address: return it in regular sendnodes packet */ |
567 | nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip6.s6_addr32[3]; | 567 | nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip6.uint32[3]; |
568 | else if (node_ip->family == AF_INET) | 568 | else if (node_ip->family == AF_INET) |
569 | nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip4.uint32; | 569 | nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip4.uint32; |
570 | else /* shouldn't happen */ | 570 | else /* shouldn't happen */ |