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:
authorDiego Rodríguez Baquero <github@diegorbaquero.com>2021-06-23 21:19:27 +0300
committerGitHub <noreply@github.com>2021-06-23 21:19:27 +0300
commit0df9eb60171ff18cec052e8f31a515b341bdd03a (patch)
tree1b8649d52cec40c66b62cd2fda722c7165c08af6 /index.js
parentda67e8a767f9f3d7eb87b1cb6117f5ae6fda2914 (diff)
fix: enable UTP by default if there's support
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index f92576a..74e29a4 100644
--- a/index.js
+++ b/index.js
@@ -74,7 +74,7 @@ class WebTorrent extends EventEmitter {
this.lsd = opts.lsd !== false
this.torrents = []
this.maxConns = Number(opts.maxConns) || 55
- this.utp = WebTorrent.UTP_SUPPORT && opts.utp === true
+ this.utp = WebTorrent.UTP_SUPPORT && opts.utp !== false
this._debug(
'new webtorrent (peerId %s, nodeId %s, port %s)',