mirror of
https://github.com/netchx/netch.git
synced 2026-04-15 21:03:23 +08:00
Use the registry to edit System DNS instead of WMI, check network connection before start mode
This commit is contained in:
@@ -33,6 +33,13 @@ namespace Netch.Controllers
|
||||
}
|
||||
|
||||
NativeMethods.FlushDNSResolverCache();
|
||||
|
||||
if (!Utils.Utils.SearchOutboundAdapter())
|
||||
{
|
||||
MessageBoxX.Show("No internet connection");
|
||||
return false;
|
||||
}
|
||||
|
||||
_ = Task.Run(Firewall.AddNetchFwRules);
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user