diff options
author | iphydf <iphydf@users.noreply.github.com> | 2017-01-05 17:11:11 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2017-01-11 15:10:52 +0000 |
commit | 958aa43bdf009487527dadd8bda7e629d572e998 (patch) | |
tree | 65714bf2612dc682b2a57a41b261b83939cce6aa /toxcore/DHT.c | |
parent | 2ba967d07801b8c8c94851528855cce24860d882 (diff) |
Fix logging condition for IPv6 client timestamp updates.
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 83a728c5..94bbbe01 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -553,7 +553,7 @@ static int client_or_ip_port_in_list(Logger *log, Client_data *list, uint16_t le | |||
553 | list[i].assoc4.timestamp = temp_time; | 553 | list[i].assoc4.timestamp = temp_time; |
554 | } else if (ip_port.ip.family == AF_INET6) { | 554 | } else if (ip_port.ip.family == AF_INET6) { |
555 | 555 | ||
556 | if (!ipport_equal(&list[i].assoc4.ip_port, &ip_port)) { | 556 | if (!ipport_equal(&list[i].assoc6.ip_port, &ip_port)) { |
557 | LOGGER_TRACE(log, "coipil[%u]: switching ipv6 from %s:%u to %s:%u", i, | 557 | LOGGER_TRACE(log, "coipil[%u]: switching ipv6 from %s:%u to %s:%u", i, |
558 | ip_ntoa(&list[i].assoc6.ip_port.ip), ntohs(list[i].assoc6.ip_port.port), | 558 | ip_ntoa(&list[i].assoc6.ip_port.ip), ntohs(list[i].assoc6.ip_port.port), |
559 | ip_ntoa(&ip_port.ip), ntohs(ip_port.port)); | 559 | ip_ntoa(&ip_port.ip), ntohs(ip_port.port)); |