diff options
Diffstat (limited to 'toxcore/friend_connection.c')
-rw-r--r-- | toxcore/friend_connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c index 0fbae406..ccf1621f 100644 --- a/toxcore/friend_connection.c +++ b/toxcore/friend_connection.c | |||
@@ -511,7 +511,7 @@ static int handle_new_connections(void *object, New_Connection *n_c) | |||
511 | connection_lossy_data_handler(fr_c->net_crypto, id, &handle_lossy_packet, fr_c, friendcon_id); | 511 | connection_lossy_data_handler(fr_c->net_crypto, id, &handle_lossy_packet, fr_c, friendcon_id); |
512 | friend_con->crypt_connection_id = id; | 512 | friend_con->crypt_connection_id = id; |
513 | 513 | ||
514 | if (n_c->source.ip.family != AF_INET && n_c->source.ip.family != AF_INET6) { | 514 | if (n_c->source.ip.family != TOX_AF_INET && n_c->source.ip.family != TOX_AF_INET6) { |
515 | set_direct_ip_port(fr_c->net_crypto, friend_con->crypt_connection_id, friend_con->dht_ip_port, 0); | 515 | set_direct_ip_port(fr_c->net_crypto, friend_con->crypt_connection_id, friend_con->dht_ip_port, 0); |
516 | } else { | 516 | } else { |
517 | friend_con->dht_ip_port = n_c->source; | 517 | friend_con->dht_ip_port = n_c->source; |