Use GetLocalEndPoint to replace GetBestRoute

This commit is contained in:
ChsBuffer
2020-09-25 01:19:15 +08:00
parent 74f136bd93
commit 801e8e3b8a
4 changed files with 39 additions and 355 deletions

View File

@@ -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;
}