From d2fad1cfd929f491a712872dc7531aea4d58a27c Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Mon, 12 Jun 2023 11:06:49 +0200 Subject: [PATCH] testing windows --- client/internal/routemanager/systemops_windows.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/internal/routemanager/systemops_windows.go b/client/internal/routemanager/systemops_windows.go index 567519d35..8be747222 100644 --- a/client/internal/routemanager/systemops_windows.go +++ b/client/internal/routemanager/systemops_windows.go @@ -11,15 +11,14 @@ import ( ) type Win32_IP4RouteTable struct { - Destination string - Mask string - NextHop string - InterfaceIdx int + Destination string + Mask string + NextHop string } func existsInRouteTable(prefix netip.Prefix) (bool, error) { var routes []Win32_IP4RouteTable - query := "SELECT Destination, Mask, NextHop, InterfaceIndex FROM Win32_IP4RouteTable" + query := "SELECT Destination, Mask, NextHop FROM Win32_IP4RouteTable" err := wmi.Query(query, &routes) if err != nil {