This commit is contained in:
ChsBuffer
2020-10-10 13:13:44 +08:00
parent e3e595d469
commit 35859a19f7

View File

@@ -49,6 +49,8 @@ namespace Netch.Utils
private static RegistryKey AdapterRegistry(bool write = false)
{
if (Global.Outbound.Adapter == null)
Utils.SearchOutboundAdapter();
return Registry.LocalMachine.OpenSubKey(
$@"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{Global.Outbound.Adapter.Id}", write);
}