From f846b615718e29d1c9dc28e0e783d046bff6dad4 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 4 May 2015 18:48:50 -0700 Subject: 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. --- bin/cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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()), -- cgit v1.2.3