From a56ccd485360b8b13036befd10ec51719bf88366 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 14 May 2019 14:56:32 +0200 Subject: service: replace GetIfEntry2Ex with GetIfEntry2 GetIfEntry2Ex is Windows 10+ only Signed-off-by: Simon Rozman --- service/ifaceconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') 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 -- cgit v1.2.3-59-g8ed1b