aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-03 20:36:51 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-03 20:36:51 -0600
commitd4f2f5b3d7041e339e37727dddfa1c63064a051a (patch)
treee4fd29cd807fa394de850ab5bee72e6fc872bfaa /src
parent0a8c9afbc2d435b230f745c7ed6f2e142668c65f (diff)
downloadslskd-d4f2f5b3d7041e339e37727dddfa1c63064a051a.tar.gz
add VpnState
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/State.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Core/State.cs b/src/slskd/Core/State.cs
index 4f7876de..7730e0eb 100644
--- a/src/slskd/Core/State.cs
+++ b/src/slskd/Core/State.cs
@@ -36,6 +36,7 @@ namespace slskd
public bool PendingRestart { get; init; }
public ServerState Server { get; init; } = new ServerState();
public ServerConnectionWatchdogState ConnectionWatchdog { get; init; } = new ServerConnectionWatchdogState();
+ public VpnState Vpn { get; init; } = new VpnState();
public RelayState Relay { get; init; } = new RelayState();
public HealthState Health { get; init; } = new HealthState();
public UserState User { get; init; } = new UserState();
@@ -93,6 +94,13 @@ namespace slskd
public DateTime? NextAttemptAt { get; init; }
}
+ public record VpnState
+ {
+ public bool IsConnected { get; init; } = false;
+ public int? ForwardedPort { get; init; } = null;
+ public bool IsReady { get; init; } = false;
+ }
+
public record RelayState
{
public RelayMode Mode { get; init; }