diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-05-27 17:33:46 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-05-27 17:33:46 -0500 |
| commit | e153974f378b0d81b84c834d6c8006ddd83eda76 (patch) | |
| tree | 9795850492b2f29b68ba0ff0e8cf054f55b7db9d | |
| parent | e2e8fb86f74fdbd1c39820a7ac3adc91d4a5c2a8 (diff) | |
| download | slskd-e153974f378b0d81b84c834d6c8006ddd83eda76.tar.gz | |
add flag for legacy windows keepalive
| -rw-r--r-- | config/slskd.example.yml | 1 | ||||
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml index f1e1b4ab..2552e081 100644 --- a/config/slskd.example.yml +++ b/config/slskd.example.yml @@ -14,6 +14,7 @@ # experimental: false # volatile: false # case_sensitive_reg_ex: false +# legacy_windows_tcp_keepalive: false # relay: # enabled: false # mode: controller # controller (default), agent, or debug (for local development) diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index f2419c83..1b049ae1 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -425,6 +425,15 @@ namespace slskd [Description("user-defined regular expressions are case sensitive")] [RequiresRestart] public bool CaseSensitiveRegEx { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether to use legacy TCP keepalive options, for Windows + /// versions prior to Windows 10, version 1709 (and associated Server SKUs). + /// </summary> + [Argument(default, "legacy-windows-tcp-keepalive")] + [EnvironmentVariable("LEGACY_WINDOWS_TCP_KEEPALIVE")] + [Description("use a legacy TCP keepalive strategy for older Windows versions")] + public bool LegacyWindowsTcpKeepalive { get; init; } = false; } /// <summary> |
