add debug logs and non-persistent windows routes

This commit is contained in:
Maycon Santos
2024-04-11 15:12:10 +02:00
parent 704c67dec8
commit d6dce06722
4 changed files with 65 additions and 1 deletions
@@ -73,7 +73,7 @@ func addRoutePowershell(prefix netip.Prefix, nexthop netip.Addr, intf, intfIdx s
}
script := fmt.Sprintf(
`%s -AddressFamily "%s" -DestinationPrefix "%s" -Confirm:$False -ErrorAction Stop`,
`%s -AddressFamily "%s" -DestinationPrefix "%s" -Confirm:$False -ErrorAction Stop -PolicyStore ActiveStore`,
psCmd, addressFamily, destinationPrefix,
)