mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Use GetLocalEndPoint to replace GetBestRoute
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Netch.Controllers
|
||||
|
||||
NativeMethods.FlushDNSResolverCache();
|
||||
|
||||
if (!Utils.Utils.SearchOutboundAdapter())
|
||||
if (!Utils.Utils.SearchOutboundAdapter(false))
|
||||
{
|
||||
MessageBoxX.Show("No internet connection");
|
||||
return false;
|
||||
@@ -167,6 +167,7 @@ namespace Netch.Controllers
|
||||
StatusPortInfoText.HttpPort = port;
|
||||
break;
|
||||
}
|
||||
|
||||
UsingPorts.Add(port);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user