fix: session A — NoSystemAccount guard, MaxControlLine default, URL/TLS converter tests
This commit is contained in:
@@ -109,6 +109,9 @@ public static class ServerOptionsConfiguration
|
||||
// Apply default auth timeout.
|
||||
if (opts.AuthTimeout == 0) opts.AuthTimeout = ServerConstants.DefaultAuthTimeout;
|
||||
|
||||
// Apply default max control line size.
|
||||
if (opts.MaxControlLine == 0) opts.MaxControlLine = ServerConstants.MaxControlLineSize;
|
||||
|
||||
// Ensure SystemAccount defaults if not set.
|
||||
ConfigureSystemAccount(opts);
|
||||
}
|
||||
@@ -121,6 +124,8 @@ public static class ServerOptionsConfiguration
|
||||
{
|
||||
// If system account already set, nothing to do.
|
||||
if (!string.IsNullOrEmpty(opts.SystemAccount)) return;
|
||||
// Respect explicit opt-out.
|
||||
if (opts.NoSystemAccount) return;
|
||||
// Default to "$SYS" if not explicitly disabled.
|
||||
opts.SystemAccount = ServerConstants.DefaultSystemAccount;
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="*" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="*" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="*" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options" Version="*" />
|
||||
<PackageReference Include="BCrypt.Net-Next" Version="*" />
|
||||
|
||||
Reference in New Issue
Block a user