diff options
Diffstat (limited to 'toxcore/DHT.c')
-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]; |