aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-05-28 09:50:58 -0500
committerGitHub <noreply@github.com>2024-05-28 09:50:58 -0500
commitb55e5545586f60419aada5bafaf90c34d76cbf67 (patch)
treeccc62a58a3b94bda64d9f1ddfbb0666f1884bcda /src/slskd/Core
parente2e8fb86f74fdbd1c39820a7ac3adc91d4a5c2a8 (diff)
parentbefac9735c93e4b5efb13472c8fdd96e4f234524 (diff)
downloadslskd-b55e5545586f60419aada5bafaf90c34d76cbf67.tar.gz
Merge pull request #1134 from slskd/sockets
Fix crash with "An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call" on Windows 10 < 1709, Server 2012 R2, or earlier
Diffstat (limited to 'src/slskd/Core')
-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>