feat: add tray remote connection settings

This commit is contained in:
2026-09-20 22:40:42 +08:00
parent baf7a47418
commit 1d5c472e88
5 changed files with 165 additions and 17 deletions
+5 -1
View File
@@ -48,7 +48,11 @@ public sealed class ServiceOptions
throw new ArgumentException("External HTTP requires a concrete listen IP; do not use 0.0.0.0 or ::.");
if (AccessToken is not null && !IsValidAccessToken(AccessToken))
throw new ArgumentException("AccessToken must be non-empty and contain no whitespace.");
try { (Reporting ?? new ReportingConfig()).NormalizeAndValidate(); }
try
{
Remote?.Validate();
(Reporting ?? new ReportingConfig()).NormalizeAndValidate();
}
catch (WxAgentException exception) { throw new ArgumentException(exception.Message, exception); }
_ = ReadCredentials();
}