From 2aa97f51f0dae0e34c55b1ba07e5cf3fee051f59 Mon Sep 17 00:00:00 2001 From: SALTWOOD <105980161+SALTWOOD@users.noreply.github.com> Date: Sun, 10 Mar 2024 04:58:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E4=BA=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E6=9D=83=E9=99=90=E7=9A=84=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CSharp-OpenBMCLAPI/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CSharp-OpenBMCLAPI/Program.cs b/CSharp-OpenBMCLAPI/Program.cs index 2e52647..30ad6e5 100644 --- a/CSharp-OpenBMCLAPI/Program.cs +++ b/CSharp-OpenBMCLAPI/Program.cs @@ -74,6 +74,7 @@ protected async Task AsyncRun() { int returns = 0; + /* if (!Utils.IsAdministrator()) { bool success = Utils.RunAsAdministrator(); @@ -94,7 +95,7 @@ protected async Task AsyncRun() WindowsFirewallHelper.FirewallAction.Allow, WindowsFirewallHelper.FirewallDirection.Inbound ); - } + }*/ // 从 .env.json 读取密钥然后 FetchToken ClusterInfo info = JsonConvert.DeserializeObject(await File.ReadAllTextAsync(".env.json"));