Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-01-06 05:32:45 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-06 05:32:45 +0300
commit0395452304735b2845dbedbcb6fbafa0a52e43c3 (patch)
tree57b535f74b4237488bcea0b14e5cfd9e5b45dd57 /lib
parentd98fca8e5e84049c54a658e5a2dfd7aa87c075f0 (diff)
Fix crash on ipv6 addresses
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 0ed1fa5..0509ceb 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -577,7 +577,7 @@ Torrent.prototype._onWire = function (wire, addr) {
return
}
debug('port: %s (from %s)', port, wire.remoteAddress + ':' + wire.remotePort)
- self.client.dht.addNode(wire.remoteAddress + ':' + port)
+ self.client.dht.addNode({ host: wire.remoteAddress, port: port })
})
wire.port(self.client.dht.address().port)