Disable utp for webtorrent
Prevent crash like https://github.com/Chocobozzz/PeerTube/issues/6222
This commit is contained in:
parent
a53834bdff
commit
65e7ffba15
1 changed files with 2 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue