Browse Source

missing socket option

v4
Mathias Buus 6 years ago
parent
commit
902828329e
  1. 2
      index.js

2
index.js

@ -25,7 +25,7 @@ class DHT extends EventEmitter {
this.bootstrapped = false
this.destroyed = false
this.concurrency = 16
this.socket = dgram.createSocket('udp4')
this.socket = opts.socket || dgram.createSocket('udp4')
this.id = randomBytes(32)
this.inflightQueries = 0
this.ephemeral = !!opts.ephemeral

Loading…
Cancel
Save