diff --git a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs index 5cfcd3f..445f27e 100644 --- a/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs +++ b/server/RdtClient.Service/Services/TorrentClients/TorBoxTorrentClient.cs @@ -1,3 +1,4 @@ +using System.Reflection; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using TorBoxNET; @@ -24,7 +25,7 @@ public class TorBoxTorrentClient(ILogger logger, IHttpClien } var httpClient = httpClientFactory.CreateClient(); - httpClient.DefaultRequestHeaders.Add("User-Agent", "rdt-client"); + httpClient.DefaultRequestHeaders.Add("User-Agent", $"rdt-client {Assembly.GetEntryAssembly()?.GetName().Version}"); httpClient.Timeout = TimeSpan.FromSeconds(Settings.Get.Provider.Timeout); var torBoxNetClient = new TorBoxNetClient(null, httpClient, 5);