From 0fd3f2a467afa6b71a3d2786d2e5933b68064a4f Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Thu, 6 Mar 2025 13:20:59 +0000 Subject: [PATCH] Set user agent for TB --- .../Services/TorrentClients/TorBoxTorrentClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index cc0a6ce..a931cd1 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -25,6 +25,7 @@ public class TorBoxTorrentClient(ILogger 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);