@torrent-tv/proxy 2.92.2 → 2.92.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -480,6 +480,13 @@ export function rejoinSwarm(torrent) {
|
|
|
480
480
|
return false;
|
|
481
481
|
}
|
|
482
482
|
torrent.resume();
|
|
483
|
+
// resume() rediscovers protocol peers but does not recreate HTTP seeds
|
|
484
|
+
// explicitly closed by leaveSwarm(). Their URLs remain in the metadata.
|
|
485
|
+
if (torrent.client?.enableWebSeeds !== false && typeof torrent.addWebSeed === "function") {
|
|
486
|
+
for (const url of torrent.urlList ?? []) {
|
|
487
|
+
if (!torrent._peers?.has(url)) torrent.addWebSeed(url);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
483
490
|
logger.info(
|
|
484
491
|
`torrent-pool: [${String(torrent.infoHash ?? "?").slice(0, 8)}] rejoined the swarm — a reader arrived`
|
|
485
492
|
);
|