Browse Source

guard dht stability with a port consistent check

session-estimator
Mathias Buus 4 years ago
parent
commit
44817ae339
  1. 4
      index.js

4
index.js

@ -245,7 +245,9 @@ class DHT extends EventEmitter {
if (!this.bootstrapped) return
if (this._tick === this._stableTick) {
this.emit('stable')
if (this.remoteAddress().type === NatAnalyzer.PORT_CONSISTENT) {
this.emit('stable')
}
}
if ((this._tick & 7) === 0) {

Loading…
Cancel
Save