Skip to content

Commit 6f333a3

Browse files
committed
clarify tracker addresses in command line output
For webtorrent#76
1 parent 0a1b89c commit 6f333a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/cmd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ server.on('stop', function (addr) {
9191

9292
server.listen(argv.port, function () {
9393
if (server.http && !argv.quiet) {
94-
console.log('http server listening on ' + server.http.address().port)
94+
console.log('HTTP tracker: http://localhost:' + server.http.address().port + '/announce')
9595
}
9696
if (server.udp && !argv.quiet) {
97-
console.log('udp server listening on ' + server.udp.address().port)
97+
console.log('UDP tracker: udp://localhost:' + server.udp.address().port)
9898
}
9999
if (server.ws && !argv.quiet) {
100-
console.log('ws server listening on ' + server.http.address().port)
100+
console.log('WebSocket tracker: ws://localhost:' + server.http.address().port)
101101
}
102102
})

0 commit comments

Comments
 (0)