Enable uTP

This commit is contained in:
Julen Garcia Leunda
2020-11-27 17:45:07 +01:00
parent 919af5bf15
commit caab9c3b76

View File

@@ -52,7 +52,7 @@ const PEER_ID = Buffer.from(VERSION_PREFIX + crypto.randomBytes(9).toString('bas
// Connect to the WebTorrent and BitTorrent networks. WebTorrent Desktop is a hybrid
// client, as explained here: https://webtorrent.io/faq
let client = window.client = new WebTorrent({ peerId: PEER_ID })
let client = window.client = new WebTorrent({ peerId: PEER_ID, utp: true })
// WebTorrent-to-HTTP streaming sever
let server = null