From b27dd4d219621b20f1cd9606dff5ddeb02c2757a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 18 Nov 2023 19:10:47 -0600 Subject: add address and port options --- src/slskd/Core/Options.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 62334742..1d4742da 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1248,6 +1248,25 @@ namespace slskd /// public class SoulseekOptions { + /// + /// Gets the address of the Soulseek server. + /// + [Argument(default, "slsk-address")] + [EnvironmentVariable("SLSK_ADDRESS")] + [Description("address of the Soulseek server")] + [RequiresReconnect] + public string Address { get; init; } = "vps.slsknet.org"; + + /// + /// Gets the port of the Soulseek server. + /// + [Argument(default, "slsk-port")] + [EnvironmentVariable("SLSK_PORT")] + [Description("port of the Soulseek server")] + [RequiresReconnect] + [Range(1024, 65535)] + public int Port { get; init; } = 2271; + /// /// Gets the username for the Soulseek network. /// -- cgit v1.2.3