aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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; }