diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-11-19 11:14:19 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 11:14:19 -0600 |
| commit | 215c7d8607b2e60256e984108372fcebd6457546 (patch) | |
| tree | 698e7f51ac7505ceceb5da9aa475d6d559a1565d /src/slskd/Core/Options.cs | |
| parent | 6280ab0533d8aeff9767ae48af7f01ef483b9b14 (diff) | |
| parent | bc835a977728b1cafcee41a94440c17c397f3f3a (diff) | |
| download | slskd-215c7d8607b2e60256e984108372fcebd6457546.tar.gz | |
Merge pull request #1001 from slskd/address
Add options for the Soulseek server address and port
Diffstat (limited to 'src/slskd/Core/Options.cs')
| -rw-r--r-- | src/slskd/Core/Options.cs | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ -1249,6 +1249,25 @@ namespace slskd public class SoulseekOptions { /// <summary> + /// Gets the address of the Soulseek server. + /// </summary> + [Argument(default, "slsk-address")] + [EnvironmentVariable("SLSK_ADDRESS")] + [Description("address of the Soulseek server")] + [RequiresReconnect] + public string Address { get; init; } = "vps.slsknet.org"; + + /// <summary> + /// Gets the port of the Soulseek server. + /// </summary> + [Argument(default, "slsk-port")] + [EnvironmentVariable("SLSK_PORT")] + [Description("port of the Soulseek server")] + [RequiresReconnect] + [Range(1024, 65535)] + public int Port { get; init; } = 2271; + + /// <summary> /// Gets the username for the Soulseek network. /// </summary> [Argument(default, "slsk-username")] |
