diff options
author | Simon Rozman <simon@rozman.si> | 2019-05-14 14:56:32 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-05-14 14:56:32 +0200 |
commit | a56ccd485360b8b13036befd10ec51719bf88366 (patch) | |
tree | 96d0aadfc716110f28def8181ca3bef8c1790f39 /service | |
parent | ui: show overlay in pinned taskbar (diff) | |
download | wireguard-windows-a56ccd485360b8b13036befd10ec51719bf88366.tar.xz wireguard-windows-a56ccd485360b8b13036befd10ec51719bf88366.zip |
service: replace GetIfEntry2Ex with GetIfEntry2
GetIfEntry2Ex is Windows 10+ only
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | service/ifaceconfig.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/ifaceconfig.go b/service/ifaceconfig.go index 7fa8721d..e6770b27 100644 --- a/service/ifaceconfig.go +++ b/service/ifaceconfig.go @@ -33,7 +33,7 @@ func bindSocketRoute(family winipcfg.AddressFamily, device *device.Device, ourLu if route.DestinationPrefix.PrefixLength != 0 || route.InterfaceLuid == ourLuid { continue } - ifrow, err := winipcfg.GetIfRow(route.InterfaceLuid, winipcfg.MibIfEntryNormalWithoutStatistics) + ifrow, err := winipcfg.GetIfRow(route.InterfaceLuid) if err != nil || ifrow.OperStatus != winipcfg.IfOperStatusUp { log.Printf("Found default route for interface %d, but not up, so skipping", route.InterfaceIndex) continue |