diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-07 18:46:11 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-07 18:46:11 -0600 |
| commit | 0f14c33d3d1682e235b6fe29a8bfe555e48a339f (patch) | |
| tree | cac1b7d79d5687bd6556de74abcb95761aded1c9 | |
| parent | 02a3a82cb2d14bc43102aea56437bab4a5d588b2 (diff) | |
| download | slskd-0f14c33d3d1682e235b6fe29a8bfe555e48a339f.tar.gz | |
add polling interval
| -rw-r--r-- | config/slskd.example.yml | 1 | ||||
| -rw-r--r-- | src/slskd/Core/Options.cs | 7 |
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] |
