mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-14 09:18:51 +02:00
test windows
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user