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:
-rw-r--r--index.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.js b/index.js
index d0b040c..c066288 100644
--- a/index.js
+++ b/index.js
@@ -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: {