Merge pull request #732 from Cucumberrbob/feat/reduce-torbox-api-load

feat:  [TB] Set user-agent
This commit is contained in:
Roger Far 2025-03-07 12:22:06 -07:00 committed by GitHub
commit 5c987a9057
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
}
var httpClient = httpClientFactory.CreateClient();
httpClient.DefaultRequestHeaders.Add("User-Agent", "rdt-client");
httpClient.Timeout = TimeSpan.FromSeconds(Settings.Get.Provider.Timeout);
var torBoxNetClient = new TorBoxNetClient(null, httpClient, 5);