Skip to content

Commit b1e55c3

Browse files
authored
Fixes tdjsnelling#30 Delete multiple trackers announce-list from downloads
1 parent 35cf824 commit b1e55c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/src/controllers/torrent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ export const downloadTorrent = async (req, res, next) => {
251251
const parsed = bencode.decode(Buffer.from(binary, "base64"));
252252

253253
parsed.announce = `${process.env.SQ_BASE_URL}/sq/${user.uid}/announce`;
254+
delete parsed["announce-list"];
254255
parsed.info.private = 1;
255256

256257
res.setHeader("Content-Type", "application/x-bittorrent");

0 commit comments

Comments
 (0)