diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-01-06 05:32:45 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-01-06 05:32:45 +0300 |
commit | 0395452304735b2845dbedbcb6fbafa0a52e43c3 (patch) | |
tree | 57b535f74b4237488bcea0b14e5cfd9e5b45dd57 /lib | |
parent | d98fca8e5e84049c54a658e5a2dfd7aa87c075f0 (diff) |
Fix crash on ipv6 addresses
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 2 |
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) |