mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix logging condition for IPv6 client timestamp updates.
This commit is contained in:
parent
2ba967d078
commit
958aa43bdf
|
@ -553,7 +553,7 @@ static int client_or_ip_port_in_list(Logger *log, Client_data *list, uint16_t le
|
||||||
list[i].assoc4.timestamp = temp_time;
|
list[i].assoc4.timestamp = temp_time;
|
||||||
} else if (ip_port.ip.family == AF_INET6) {
|
} else if (ip_port.ip.family == AF_INET6) {
|
||||||
|
|
||||||
if (!ipport_equal(&list[i].assoc4.ip_port, &ip_port)) {
|
if (!ipport_equal(&list[i].assoc6.ip_port, &ip_port)) {
|
||||||
LOGGER_TRACE(log, "coipil[%u]: switching ipv6 from %s:%u to %s:%u", i,
|
LOGGER_TRACE(log, "coipil[%u]: switching ipv6 from %s:%u to %s:%u", i,
|
||||||
ip_ntoa(&list[i].assoc6.ip_port.ip), ntohs(list[i].assoc6.ip_port.port),
|
ip_ntoa(&list[i].assoc6.ip_port.ip), ntohs(list[i].assoc6.ip_port.port),
|
||||||
ip_ntoa(&ip_port.ip), ntohs(ip_port.port));
|
ip_ntoa(&ip_port.ip), ntohs(ip_port.port));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user