mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
More robust webtorrent test
This commit is contained in:
@@ -56,7 +56,12 @@ export async function magnetUriEncode (data: MagnetUriInstance) {
|
||||
async function webtorrentAdd (torrentId: string) {
|
||||
const WebTorrent = (await import('webtorrent')).default
|
||||
|
||||
const webtorrent = new WebTorrent()
|
||||
const webtorrent = new WebTorrent({
|
||||
natUpnp: false,
|
||||
natPmp: false,
|
||||
utp: false,
|
||||
lsd: false
|
||||
} as any)
|
||||
|
||||
webtorrent.on('error', err => console.error('Error in webtorrent', err))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user