mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-21 01:49:20 +02:00
testing windows
This commit is contained in:
parent
0b5594f145
commit
d2fad1cfd9
@ -14,12 +14,11 @@ type Win32_IP4RouteTable struct {
|
|||||||
Destination string
|
Destination string
|
||||||
Mask string
|
Mask string
|
||||||
NextHop string
|
NextHop string
|
||||||
InterfaceIdx int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func existsInRouteTable(prefix netip.Prefix) (bool, error) {
|
func existsInRouteTable(prefix netip.Prefix) (bool, error) {
|
||||||
var routes []Win32_IP4RouteTable
|
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)
|
err := wmi.Query(query, &routes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user