aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-01 22:26:00 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-01 22:26:00 -0600
commitc0ab76e7a199b71431e73b2cf70cbf616feaf026 (patch)
treeba32af5ed77e04fdf9f0dfbc689d39a28ae02bbb /src/slskd/Integrations
parent1f7799fd5b1d75ce4648de7e025793038539c1c7 (diff)
downloadslskd-c0ab76e7a199b71431e73b2cf70cbf616feaf026.tar.gz
add none auth method
Diffstat (limited to 'src/slskd/Integrations')
-rw-r--r--src/slskd/Integrations/VPN/GluetunClient.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Integrations/VPN/GluetunClient.cs b/src/slskd/Integrations/VPN/GluetunClient.cs
index 16713963..81757c5c 100644
--- a/src/slskd/Integrations/VPN/GluetunClient.cs
+++ b/src/slskd/Integrations/VPN/GluetunClient.cs
@@ -26,8 +26,9 @@ using System.Threading.Tasks;
using Serilog;
using static slskd.Options.IntegrationOptions.VpnOptions;
-public enum GluetunClientAuthOptions
+public enum GluetunClientAuthenticationMethod
{
+ None,
Basic,
ApiKey,
}
@@ -93,7 +94,7 @@ public class GluetunClient : IVPNClient
private void ConfigureAuth(HttpClient client)
{
- if (Options.Auth.Equals(GluetunClientAuthOptions.Basic.ToString(), StringComparison.OrdinalIgnoreCase))
+ if (Options.Auth.Equals(GluetunClientAuthenticationMethod.Basic.ToString(), StringComparison.OrdinalIgnoreCase))
{
var creds = $"{Options.Username}:{Options.Password}".ToBase64();
client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", $"Basic {creds}");