mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 14:06:54 +02:00
wintun: handle error for deadgwdetect
This commit is contained in:
parent
6d78f89557
commit
05ece4d167
1 changed files with 3 additions and 2 deletions
|
@ -362,9 +362,10 @@ func CreateInterface(description string, requestedGUID *windows.GUID) (wintun *W
|
|||
key, err = registry.OpenKey(registry.LOCAL_MACHINE, tcpipInterfaceRegKeyName, registry.SET_VALUE)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Error opening interface-specific TCP/IP network registry key: %v", err)
|
||||
} else {
|
||||
key.SetDWordValue("EnableDeadGWDetect", 0)
|
||||
key.Close()
|
||||
}
|
||||
key.SetDWordValue("EnableDeadGWDetect", 0)
|
||||
key.Close()
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue