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>2016-08-21 07:17:27 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-08-21 07:17:27 +0300
commit6a67a64a68ff2bcadb41dcf5dd463c1ee93e0186 (patch)
treec21b755aef223c454e8df782d8777b2972840b57
parent23bac7d81ee48a68d352089602630384d09473fb (diff)
better debug id
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index a695d07..78c6375 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -66,7 +66,7 @@ function Torrent (torrentId, client, opts) {
EventEmitter.call(this)
this.client = client
- this._debugId = this.client.peerId.slice(32)
+ this._debugId = this.client.peerId.toString('hex').substring(0, 7)
this._debug('new torrent')