diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-08 21:08:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-08 21:08:50 -0500 |
| commit | f4edb6baa76bbe1465d30bd69de06d57e4d23c0c (patch) | |
| tree | 242c29d677c67ca3b1f63a69595789932e16a823 /src/slskd/Core | |
| parent | 85ce16a71eb88134a9b3230ea832e6dc37c7c216 (diff) | |
| parent | 75fb01e431292bf2e43639506364a74bbab1fbdb (diff) | |
| download | slskd-f4edb6baa76bbe1465d30bd69de06d57e4d23c0c.tar.gz | |
Merge pull request #1875 from slskd/mtu
Add an option to configure MTU for the server connection
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 10 |
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 |
