aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-05-27 17:33:46 -0500
committerJP Dillingham <jp@dillingham.me>2024-05-27 17:33:46 -0500
commite153974f378b0d81b84c834d6c8006ddd83eda76 (patch)
tree9795850492b2f29b68ba0ff0e8cf054f55b7db9d /src
parente2e8fb86f74fdbd1c39820a7ac3adc91d4a5c2a8 (diff)
downloadslskd-e153974f378b0d81b84c834d6c8006ddd83eda76.tar.gz
add flag for legacy windows keepalive
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
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>