aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 13a24eed..f278d895 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1815,6 +1815,16 @@ namespace slskd
public ProxyOptions Proxy { get; init; } = new ProxyOptions();
/// <summary>
+ /// Gets the MTU to use for the server connection, or null to use the OS default.
+ /// </summary>
+ [Argument(default, "slsk-server-mtu")]
+ [EnvironmentVariable("SLSK_SERVER_MTU")]
+ [Description("MTU to use for the server connection")]
+ [Range(576, 65535)]
+ [RequiresReconnect]
+ public int? Mtu { get; init; } = null;
+
+ /// <summary>
/// Connection buffer options.
/// </summary>
public class BufferOptions