fix(cli): condition for open access warning.

fix #578
This commit is contained in:
genteure 2024-03-10 12:01:09 +08:00
parent d32ebb9748
commit afae6d0be7

View File

@ -231,7 +231,7 @@ namespace BililiveRecorder.Cli
services.AddSingleton(new BasicAuthCredential(sharedArguments.HttpBasicUser ?? string.Empty, sharedArguments.HttpBasicPass ?? string.Empty));
}
if (!sharedArguments.HttpOpenAccess && Environment.GetEnvironmentVariable("BREC_HTTP_OPEN_ACCESS") is not null){
if (sharedArguments.HttpOpenAccess || Environment.GetEnvironmentVariable("BREC_HTTP_OPEN_ACCESS") is not null){
services.AddSingleton(new DisableOpenAccessWarningConfig());
}
})