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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-10-10 09:34:01 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-10-10 09:34:01 +0400
commit99bf8c8466db12c5e88072b389eb690a47488988 (patch)
treeab71309e122fb52b6dbe23999748c6f61d2de0c5 /index.js
parent80d2f86e8bebc1e660124980f55e97e5427a91d6 (diff)
fix --list option (#95)
Diffstat (limited to 'index.js')
-rw-r--r--index.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/index.js b/index.js
index 0f58e3e..e575fca 100644
--- a/index.js
+++ b/index.js
@@ -68,9 +68,6 @@ function WebTorrent (opts) {
debug('new webtorrent (peerId %s, nodeId %s)', self.peerIdHex, self.nodeIdHex)
- // TODO: this is probably broken
- if (opts.list) return
-
if (opts.port !== false && typeof Server === 'function' /* browser exclude */) {
self.server = new Server(self, opts.port)
self.server.on('listening', function () {