Disable utp for webtorrent

Prevent crash like https://github.com/Chocobozzz/PeerTube/issues/6222
pull/6252/head
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
1 changed files with 2 additions and 1 deletions

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) => {