Enable uTP
This commit is contained in:
@@ -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
|
// Connect to the WebTorrent and BitTorrent networks. WebTorrent Desktop is a hybrid
|
||||||
// client, as explained here: https://webtorrent.io/faq
|
// 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
|
// WebTorrent-to-HTTP streaming sever
|
||||||
let server = null
|
let server = null
|
||||||
|
|||||||
Reference in New Issue
Block a user