mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
fix: #396
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user