From c3d69a12a52d2ca550aa2f7345fd6e0cc6c8a41d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 8 Feb 2026 13:08:39 -0600 Subject: remove required option; if vpn is enabled it is required --- src/slskd/Core/ConnectionWatchdog.cs | 9 +-------- src/slskd/Core/Options.cs | 6 ------ 2 files changed, 1 insertion(+), 14 deletions(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/ConnectionWatchdog.cs b/src/slskd/Core/ConnectionWatchdog.cs index 7e0710a6..d2f7caa8 100644 --- a/src/slskd/Core/ConnectionWatchdog.cs +++ b/src/slskd/Core/ConnectionWatchdog.cs @@ -152,13 +152,6 @@ namespace slskd /// This should be called when the application is reasonably certain that the connection is connected. public virtual void Stop(bool abortReconnect = false) { - // if the VPN is required, we have to keep polling in the background so we can disconnect if it drops - // this is a belt-and-suspenders effort to ensure maximum protection in case someone doesn't have a kill switch - if (!OptionsAtStartup.Integration.Vpn.Required) - { - VPN.StopPolling(); - } - // stop the timer first to avoid having it start the connection process again when the cts is cancelled WatchdogTimer.Enabled = false; UpdateApplicationState(); @@ -257,7 +250,7 @@ namespace slskd return; } - if (OptionsAtStartup.Integration.Vpn.Required && !VPN.IsReady) + if (OptionsAtStartup.Integration.Vpn.Enabled && !VPN.IsReady) { IsAwaitingVpn = true; return; diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 08fb1166..a0b5f954 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -2316,12 +2316,6 @@ namespace slskd [RequiresRestart] public bool Enabled { get; init; } = false; - /// - /// Gets a value indicating whether a VPN connection is required before connecting to the Soulseek network. - /// - [RequiresRestart] - public bool Required { get; init; } = false; - /// /// Gets a value indicating whether the configured VPN supports port forwarding. /// -- cgit v1.2.3