test windows

This commit is contained in:
Pascal Fischer
2023-06-12 15:26:28 +02:00
parent 697d41c94e
commit 5d19811331
2 changed files with 1 additions and 117 deletions

View File

@ -32,10 +32,7 @@ func existsInRouteTable(prefix netip.Prefix) (bool, error) {
ip = ip.To4()
mask := net.IPv4Mask(ip[0], ip[1], ip[2], ip[3])
cidr, _ := mask.Size()
fmt.Println(route.Destination, "<=>", prefix.Addr().String())
fmt.Println(cidr, "<=>", prefix.Bits())
if route.Destination == prefix.Addr().String() && cidr == prefix.Bits() {
fmt.Println("Found route exists in table")
if route.Destination == prefix.Addr().String() && cidr == prefix.Bits() && false {
return true, nil
}
}