diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Integrations/VPN/VPNService.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Integrations/VPN/VPNService.cs b/src/slskd/Integrations/VPN/VPNService.cs index 1f59db99..db09c041 100644 --- a/src/slskd/Integrations/VPN/VPNService.cs +++ b/src/slskd/Integrations/VPN/VPNService.cs @@ -213,6 +213,9 @@ public class VPNService : IDisposable } } + // if the VPN client returned null, swap it for a default instance to prevent null refs + status ??= new VPNStatus(); + if (!IsReady && isReadyNow) { if (options.PortForwarding) |
