aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-07-11 19:49:00 -0500
committerGitHub <noreply@github.com>2021-07-11 19:49:00 -0500
commitfe49922ba8271c2bc14f51106b3d97eb87942346 (patch)
treecd0f01ff6801fe65e3d69a547665754eda2aab3e /src/slskd/Options.cs
parent74646fd90e45ae6d84b95bac8e610e907e3ca202 (diff)
parentc9a034a0a20d9fc97ac91524d9a4211aa3344d55 (diff)
downloadslskd-fe49922ba8271c2bc14f51106b3d97eb87942346.tar.gz
Merge pull request #121 from slskd/slsk-optional
Don't require Soulseek credentials, don't automatically connect if they are missing
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 98499fc9..7e4880c6 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -221,24 +221,22 @@ namespace slskd
public class SoulseekOptions
{
/// <summary>
- /// Gets the password for the Soulseek network.
- /// </summary>
- [Argument(default, "slsk-password")]
- [EnvironmentVariable("SLSK_PASSWORD")]
- [Description("password for the Soulseek network")]
- [Required]
- public string Password { get; private set; } = null;
-
- /// <summary>
/// Gets the username for the Soulseek network.
/// </summary>
[Argument(default, "slsk-username")]
[EnvironmentVariable("SLSK_USERNAME")]
[Description("username for the Soulseek network")]
- [Required]
public string Username { get; private set; } = null;
/// <summary>
+ /// Gets the password for the Soulseek network.
+ /// </summary>
+ [Argument(default, "slsk-password")]
+ [EnvironmentVariable("SLSK_PASSWORD")]
+ [Description("password for the Soulseek network")]
+ public string Password { get; private set; } = null;
+
+ /// <summary>
/// Gets the port on which to listen for incoming connections.
/// </summary>
[Argument(default, "slsk-listen-port")]