From b5f84b33f707484890357215593eeb8b1e77bdda Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 17 May 2014 15:23:16 -0400 Subject: net_crypto now works again on pure UDP. --- toxcore/net_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/net_crypto.c') diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 8230a41d..1e3456c3 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -414,8 +414,8 @@ static int send_packet_to(Net_Crypto *c, int crypt_connection_id, uint8_t *data, if (direct_connected && (uint32_t)sendpacket(c->dht->net, conn->ip_port, data, length) == length) return 0; - if (length < 96 - || data[0] == NET_PACKET_CRYPTO_HS) //TODO: a better way of sending packets directly to confirm the others ip. + //TODO: a better way of sending packets directly to confirm the others ip. + if (length < 96 || data[0] == NET_PACKET_COOKIE_REQUEST || data[0] == NET_PACKET_CRYPTO_HS) sendpacket(c->dht->net, conn->ip_port, data, length); } -- cgit v1.2.3