diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-03-01 01:02:25 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-03-01 01:02:25 +0300 |
commit | 68cffe42d6bdd9dfc1a66b8e1ee0ef1990644d5d (patch) | |
tree | 5c63b6220bbfb601a1a46110a251aa76fa6ae68f /test/download-tracker-torrent.js | |
parent | 56fcce4366b27ff7be902a283a6073aa9420bac2 (diff) |
bittorrent-tracker@3
Diffstat (limited to 'test/download-tracker-torrent.js')
-rw-r--r-- | test/download-tracker-torrent.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/download-tracker-torrent.js b/test/download-tracker-torrent.js index f0ecf03..ba3c371 100644 --- a/test/download-tracker-torrent.js +++ b/test/download-tracker-torrent.js @@ -37,7 +37,8 @@ function torrentDownloadTest (t, serverType) { trackerStartCount += 1 }) - tracker.listen(function (port) { + tracker.listen(function () { + var port = tracker[serverType].address().port var announceUrl = serverType === 'http' ? 'http://127.0.0.1:' + port + '/announce' : 'udp://127.0.0.1:' + port |