Skip to content

Commit

Permalink
Disable utp for webtorrent
Browse files Browse the repository at this point in the history
Prevent crash like #6222
  • Loading branch information
Chocobozzz committed Feb 15, 2024
1 parent a53834b commit 65e7ffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/core/helpers/webtorrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 65e7ffb

Please sign in to comment.