aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/slskd.example.yml1
-rw-r--r--src/slskd/Core/Options.cs7
2 files changed, 8 insertions, 0 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index 25fb4760..4f8cd157 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -235,6 +235,7 @@
# enabled: false
# required: false # wait for the VPN to connect before connecting to Soulseek
# port_forwarding: false
+# polling_interval: 2500
# gluetun:
# url: http://localhost:8000
# auth: apikey
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 85d1491c..565cbd4d 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -2328,6 +2328,13 @@ namespace slskd
public bool PortForwarding { get; init; } = false;
/// <summary>
+ /// Gets the rate at which to poll the configured VPN client for status updates, in milliseconds.
+ /// </summary>
+ [Range(500, int.MaxValue)]
+ [RequiresRestart]
+ public int PollingInterval { get; init; } = 2500;
+
+ /// <summary>
/// Gets Gluetun options.
/// </summary>
[Validate]