From 8d3fd0800abc61085e8c501e7e201d413f314162 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 4 Feb 2014 08:46:36 -0500 Subject: Lowered the route to friend minimum number of peers. This fixes hole punching for some NATs. --- toxcore/DHT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/DHT.c b/toxcore/DHT.c index fac5998f..83e3023f 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -1554,7 +1554,7 @@ int route_tofriend(DHT *dht, uint8_t *friend_id, uint8_t *packet, uint32_t lengt IP_Port ip_list[MAX_FRIEND_CLIENTS]; int ip_num = friend_iplist(dht, ip_list, num); - if (ip_num < (MAX_FRIEND_CLIENTS / 2)) + if (ip_num < (MAX_FRIEND_CLIENTS / 4)) return 0; /* Reason for that? */ DHT_Friend *friend = &dht->friends_list[num]; -- cgit v1.2.3