If dht.connect fails with a HOLEPUNCH_ABORTED error, we should mark that peer as forceRelaying = true, which will force all subsequent connection attempts to go through the provided relay (if relayThrough is specified).
Also, when forceRelaying is set, attempts is reset in order to get VERY_HIGH_PRIORITY on the subsequent relay connection attempt.
If
dht.connect
fails with aHOLEPUNCH_ABORTED
error, we should mark that peer asforceRelaying = true
, which will force all subsequent connection attempts to go through the provided relay (ifrelayThrough
is specified).Also, when
forceRelaying
is set,attempts
is reset in order to getVERY_HIGH_PRIORITY
on the subsequent relay connection attempt.