Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Fixed ArgumentException crash when validation on boot disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Oct 14, 2018
1 parent cac17f6 commit c4224f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DNSChanger/DNSValidate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ public static void Enable(Interface @interface)

public static void Disable()
{
RegistryKey.DeleteValue(GlobalVars.Name);
if (Get() != null)
{
RegistryKey.DeleteValue(GlobalVars.Name);
}
}

private static string AggregateDnsEntries(Interface @interface)
Expand Down

0 comments on commit c4224f0

Please sign in to comment.