From afae6d0be79628d4e828bfecca4cf4d86a86b213 Mon Sep 17 00:00:00 2001 From: genteure Date: Sun, 10 Mar 2024 12:01:09 +0800 Subject: [PATCH] fix(cli): condition for open access warning. fix #578 --- BililiveRecorder.Cli/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BililiveRecorder.Cli/Program.cs b/BililiveRecorder.Cli/Program.cs index 1be32da..a0e42e2 100644 --- a/BililiveRecorder.Cli/Program.cs +++ b/BililiveRecorder.Cli/Program.cs @@ -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()); } })