mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug with hole punching.
This commit is contained in:
parent
b6a5aa38c6
commit
d87a13ce94
|
@ -1563,7 +1563,7 @@ static void punch_holes(DHT *dht, IP ip, uint16_t *port_list, uint16_t numports,
|
|||
uint16_t firstport = port_list[0];
|
||||
|
||||
for (i = 0; i < numports; ++i) {
|
||||
if (firstport != port_list[0])
|
||||
if (firstport != port_list[i])
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user