diff options
author | irungentoo <irungentoo@gmail.com> | 2014-02-04 08:46:36 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-02-04 08:46:36 -0500 |
commit | 8d3fd0800abc61085e8c501e7e201d413f314162 (patch) | |
tree | 9d655005d5760bfa4f4d79c8ba7517c3931bef5c | |
parent | c7b8d49c8c0665bee8e9e599c6b196978c0cb762 (diff) |
Lowered the route to friend minimum number of peers.
This fixes hole punching for some NATs.
-rw-r--r-- | toxcore/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
1554 | IP_Port ip_list[MAX_FRIEND_CLIENTS]; | 1554 | IP_Port ip_list[MAX_FRIEND_CLIENTS]; |
1555 | int ip_num = friend_iplist(dht, ip_list, num); | 1555 | int ip_num = friend_iplist(dht, ip_list, num); |
1556 | 1556 | ||
1557 | if (ip_num < (MAX_FRIEND_CLIENTS / 2)) | 1557 | if (ip_num < (MAX_FRIEND_CLIENTS / 4)) |
1558 | return 0; /* Reason for that? */ | 1558 | return 0; /* Reason for that? */ |
1559 | 1559 | ||
1560 | DHT_Friend *friend = &dht->friends_list[num]; | 1560 | DHT_Friend *friend = &dht->friends_list[num]; |