diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 1f00144a..87c98089 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -422,7 +422,7 @@ int crypto_connect(Net_Crypto *c, uint8_t *public_key, IP_Port ip_port) | |||
422 | if (id != -1) { | 422 | if (id != -1) { |
423 | IP_Port c_ip = connection_ip(c->lossless_udp, c->crypto_connections[id].number); | 423 | IP_Port c_ip = connection_ip(c->lossless_udp, c->crypto_connections[id].number); |
424 | 424 | ||
425 | if (c_ip.ip.i == ip_port.ip.i && c_ip.port == ip_port.port) | 425 | if (c_ip.ip.uint32 == ip_port.ip.uint32 && c_ip.port == ip_port.port) |
426 | return -1; | 426 | return -1; |
427 | } | 427 | } |
428 | 428 | ||