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/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-05-05 04:48:50 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-05-05 04:48:50 +0300
commitf846b615718e29d1c9dc28e0e783d046bff6dad4 (patch)
treeb9a3885ba1916012e88a73addcc7ad1beff24759 /bin
parent8dd03200f5b63f88f7c6eb53b4265f4bfcd5cbe5 (diff)
Breaking: change wire.remoteAddress property
wire.remoteAddress used to be an "addr:port" string. Now, wire.remoteAddress is just the ip address. wire.remotePort is the port. This matches what net.Socket does.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index c832e50..f60fe93 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -530,7 +530,7 @@ function drawTorrent (torrent) {
'{3:%s} {25+magenta:%s} {10:%s} {10+cyan:%s/s} {10+red:%s/s} {15+grey:%s}' +
'{15+cyan:%s}',
progress,
- wire.remoteAddress,
+ wire.remoteAddress + ':' + wire.remotePort,
prettyBytes(wire.downloaded),
prettyBytes(wire.downloadSpeed()),
prettyBytes(wire.uploadSpeed()),