From 65e30b75178524730636a1b00621e05c08913d63 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 8 Oct 2026 20:48:57 -0500 Subject: Mtu property --- src/slskd/Core/Options.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/slskd/Core/Options.cs') 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 @@ -1814,6 +1814,16 @@ namespace slskd [Validate] public ProxyOptions Proxy { get; init; } = new ProxyOptions(); + /// + /// Gets the MTU to use for the server connection, or null to use the OS default. + /// + [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; + /// /// Connection buffer options. /// -- cgit v1.2.3