1
0
Fork 0

Disable utp for webtorrent

Prevent crash like https://github.com/Chocobozzz/PeerTube/issues/6222
This commit is contained in:
Chocobozzz 2024-02-15 16:49:04 +01:00
parent a53834bdff
commit 65e7ffba15
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -38,7 +38,8 @@ async function downloadWebTorrentVideo (target: { uri: string, torrentName?: str
// eslint-disable-next-line new-cap
const webtorrent = new (await import('webtorrent')).default({
natUpnp: false,
natPmp: false
natPmp: false,
utp: false
} as any)
return new Promise<string>((res, rej) => {