From 0f14c33d3d1682e235b6fe29a8bfe555e48a339f Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 7 Feb 2026 18:46:11 -0600 Subject: add polling interval --- config/slskd.example.yml | 1 + src/slskd/Core/Options.cs | 7 +++++++ 2 files changed, 8 insertions(+) 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 @@ -2327,6 +2327,13 @@ namespace slskd /// public bool PortForwarding { get; init; } = false; + /// + /// Gets the rate at which to poll the configured VPN client for status updates, in milliseconds. + /// + [Range(500, int.MaxValue)] + [RequiresRestart] + public int PollingInterval { get; init; } = 2500; + /// /// Gets Gluetun options. /// -- cgit v1.2.3