aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-03-29 07:03:54 -0500
committerGitHub <noreply@github.com>2022-03-29 07:03:54 -0500
commit6a44300ba0da23b983aaf7eceff0fefcea5c6662 (patch)
tree4eb3c9cac7557c2070af54c420472e25a575848b /src
parent928491c7f313226ca56d5ad82cd5ee85e5f50dac (diff)
parent78f9910d92401a16e746000a48e200a0a8d88358 (diff)
downloadslskd-6a44300ba0da23b983aaf7eceff0fefcea5c6662.tar.gz
Merge branch 'master' into filters
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs2
-rw-r--r--src/slskd/Options.cs9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 72478bde..6b95c98b 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -905,7 +905,7 @@ namespace slskd
private Task<UserInfo> UserInfoResolver(string username, IPEndPoint endpoint)
{
var info = new UserInfo(
- description: $"Soulseek.NET Web Example! also, your username is {username}, and IP endpoint is {endpoint}",
+ description: Options.Soulseek.Description,
uploadSlots: 1,
queueLength: 0,
hasFreeUploadSlot: false);
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 64ca494f..a2c04333 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -695,6 +695,15 @@ namespace slskd
public string Password { get; init; } = null;
/// <summary>
+ /// Gets the description of the Soulseek user.
+ /// </summary>
+ [Argument(default, "slsk-description")]
+ [EnvironmentVariable("SLSK_DESCRIPTION")]
+ [Description("user description for the Soulseek network")]
+ [RequiresReconnect]
+ public string Description { get; init; } = "A slskd user. https://github.com/slskd/slskd";
+
+ /// <summary>
/// Gets the port on which to listen for incoming connections.
/// </summary>
[Argument(default, "slsk-listen-port")]