From 8eff715b5c9d0da9f36fe4fe2d6d749162d2cd40 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Thu, 11 Apr 2024 14:38:34 +0200 Subject: [PATCH] Use route active store --- client/internal/routemanager/systemops_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/routemanager/systemops_windows.go b/client/internal/routemanager/systemops_windows.go index 334ace45324..ba211082f1f 100644 --- a/client/internal/routemanager/systemops_windows.go +++ b/client/internal/routemanager/systemops_windows.go @@ -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, )