Browse Source

if only doing a firewall check, allow a recheck of same network

session-estimator
Mathias Buus 2 years ago
parent
commit
b1ea2afc54
  1. 8
      index.js

8
index.js

@ -503,9 +503,11 @@ class DHT extends EventEmitter {
const { host, port } = this._nat
// remember what host we checked and reset the counter
this._stableTicks = MORE_STABLE_TICKS
this._lastHost = host
if (!onlyFirewall) {
// remember what host we checked and reset the counter
this._stableTicks = MORE_STABLE_TICKS
this._lastHost = host
}
// check if we have a consistent host and port
if (host === null || port === 0) {

Loading…
Cancel
Save