diff options
-rw-r--r-- | index.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -86,6 +86,11 @@ function WebTorrent (opts) { self.torrents = [] self.maxConns = Number(opts.maxConns) || 55 + debug( + 'new webtorrent (peerId %s, nodeId %s, port %s)', + self.peerId, self.nodeId, self.torrentPort + ) + if (self.tracker) { if (typeof self.tracker !== 'object') self.tracker = {} if (opts.rtcConfig) { @@ -134,8 +139,6 @@ function WebTorrent (opts) { self.dht = false } - debug('new webtorrent (peerId %s, nodeId %s)', self.peerId, self.nodeId) - if (typeof loadIPSet === 'function' && opts.blocklist != null) { loadIPSet(opts.blocklist, { headers: { |