Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LordArma committed May 2, 2024
1 parent 02be339 commit 1e148c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DNS on Tray/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private static void RunCMDAsAdmin(string args)

public static void AddDNS(string dns1, string dns2)
{
RunCMDAsAdmin($"wmic nicconfig where (IPEnabled=TRUE) call SetDNSServerSearchOrder (\"{dns1}\", \"{dns2}\")");
RunCMDAsAdmin($"/C wmic nicconfig where (IPEnabled=TRUE) call SetDNSServerSearchOrder (\"{dns1}\", \"{dns2}\")");
}

public static void ClearDNS()
Expand Down

0 comments on commit 1e148c1

Please sign in to comment.