diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-03 20:36:51 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-03 20:36:51 -0600 |
| commit | d4f2f5b3d7041e339e37727dddfa1c63064a051a (patch) | |
| tree | e4fd29cd807fa394de850ab5bee72e6fc872bfaa /src | |
| parent | 0a8c9afbc2d435b230f745c7ed6f2e142668c65f (diff) | |
| download | slskd-d4f2f5b3d7041e339e37727dddfa1c63064a051a.tar.gz | |
add VpnState
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/State.cs | 8 |
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; } |
