diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-08 20:48:57 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-08 20:48:57 -0500 |
| commit | 65e30b75178524730636a1b00621e05c08913d63 (patch) | |
| tree | 8136e0ab5ad9024c8109f12005a855f9f9a7608a /src | |
| parent | 9c4101554e28e4ccf4104e224225bb440ac78f78 (diff) | |
| download | slskd-65e30b75178524730636a1b00621e05c08913d63.tar.gz | |
Mtu property
Diffstat (limited to 'src')
| -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 |
