Skip to content

Commit

Permalink
feat: 移除了管理员权限的要求
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Mar 9, 2024
1 parent a04d03c commit 2aa97f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CSharp-OpenBMCLAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ protected async Task<int> AsyncRun()
{
int returns = 0;

/*
if (!Utils.IsAdministrator())
{
bool success = Utils.RunAsAdministrator();
Expand All @@ -94,7 +95,7 @@ protected async Task<int> AsyncRun()
WindowsFirewallHelper.FirewallAction.Allow,
WindowsFirewallHelper.FirewallDirection.Inbound
);
}
}*/

// 从 .env.json 读取密钥然后 FetchToken
ClusterInfo info = JsonConvert.DeserializeObject<ClusterInfo>(await File.ReadAllTextAsync(".env.json"));
Expand Down

0 comments on commit 2aa97f5

Please sign in to comment.