aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-06 09:22:37 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-06 09:22:37 -0600
commit4d6bf6d6c038c7b5ccdca003cca09a18ce1ea285 (patch)
tree40b754686976d977eb044741140b8479a6d3479f
parentb2c321c401d305e7c8f9edcd60c3d9e03ddfa359 (diff)
downloadslskd-4d6bf6d6c038c7b5ccdca003cca09a18ce1ea285.tar.gz
add ip and location to vpn state
-rw-r--r--src/slskd/Core/State.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Core/State.cs b/src/slskd/Core/State.cs
index 7730e0eb..f9a3bf97 100644
--- a/src/slskd/Core/State.cs
+++ b/src/slskd/Core/State.cs
@@ -96,9 +96,11 @@ namespace slskd
public record VpnState
{
+ public bool IsReady { get; init; } = false;
public bool IsConnected { get; init; } = false;
+ public IPAddress PublicIPAddress { get; init; } = null;
+ public string Location { get; init; } = null;
public int? ForwardedPort { get; init; } = null;
- public bool IsReady { get; init; } = false;
}
public record RelayState