aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index b75f9356..af46f23c 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -391,6 +391,7 @@ namespace slskd
/// <summary>
/// Gets the controller configuration.
/// </summary>
+ [Validate]
public NetworkControllerConfigurationOptions Controller { get; init; } = new NetworkControllerConfigurationOptions();
/// <summary>
@@ -429,6 +430,7 @@ namespace slskd
/// </summary>
[Argument(default, "controller-address")]
[EnvironmentVariable("CONTROLLER_ADDRESS")]
+ [Url]
public string Address { get; init; }
/// <summary>
@@ -436,7 +438,7 @@ namespace slskd
/// </summary>
[Argument(default, "controller-secret")]
[EnvironmentVariable("CONTROLLER_SECRET")]
- [StringLength(48, MinimumLength = 48)]
+ [StringLength(255, MinimumLength = 16)]
[Secret]
public string Secret { get; init; }
}
@@ -449,7 +451,7 @@ namespace slskd
/// <summary>
/// Gets the agent secret.
/// </summary>
- [StringLength(48, MinimumLength = 48)]
+ [StringLength(255, MinimumLength = 16)]
[Secret]
public string Secret { get; init; }
}