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:
authorJulen Garcia Leunda <hicom150@gmail.com>2020-11-12 19:04:53 +0300
committerJulen Garcia Leunda <hicom150@gmail.com>2020-11-12 19:04:53 +0300
commit0ba67b8e8f54d888ba0dd14a6e5f4a18d46e1294 (patch)
tree4d831e47fcec3182e9cc33830143bcaef5be685f /index.js
parente5445be2f5d64bc545211c604e106dc3bcb10385 (diff)
Add lsd option to client
Diffstat (limited to 'index.js')
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index 5b69b1c..9544691 100644
--- a/index.js
+++ b/index.js
@@ -70,6 +70,7 @@ class WebTorrent extends EventEmitter {
this.torrentPort = opts.torrentPort || 0
this.dhtPort = opts.dhtPort || 0
this.tracker = opts.tracker !== undefined ? opts.tracker : {}
+ this.lsd = opts.lsd === true
this.torrents = []
this.maxConns = Number(opts.maxConns) || 55
this.utp = opts.utp === true