Set user agent for TB

This commit is contained in:
Cucumberrbob 2025-03-06 13:20:59 +00:00
parent 85d6b820f3
commit 0fd3f2a467
No known key found for this signature in database
GPG key ID: 2B935C47401C3614

View file

@ -25,6 +25,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);