Add trackers

This commit is contained in:
Kieran
2023-03-04 20:31:53 +00:00
parent ef3ebb867d
commit 0a827651a2
4 changed files with 28 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ public class DownloadController : Controller
{
var t = await voidFile.Metadata!.MakeTorrent(
await _storage.Open(new(gid, Enumerable.Empty<RangeRequest>()), CancellationToken.None),
_settings.SiteUrl);
_settings.SiteUrl, _settings.TorrentTrackers);
Response.Headers.ContentDisposition = $"inline; filename=\"{id}\"";
Response.ContentType = "application/x-bittorent";