More robust webtorrent test

This commit is contained in:
Chocobozzz
2025-02-04 08:05:28 +01:00
parent 922b0f06c1
commit c791e6d523

View File

@@ -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))