diff --git a/pkg/backend/wireguard/device.go b/pkg/backend/wireguard/device.go index d5ad797239..ec0364af44 100644 --- a/pkg/backend/wireguard/device.go +++ b/pkg/backend/wireguard/device.go @@ -233,7 +233,7 @@ func (dev *wgDevice) addRoute(dst *net.IPNet) error { Dst: dst, } - err := netlink.RouteAdd(&route) + err := netlink.RouteReplace(&route) if err != nil { return fmt.Errorf("failed to add route %s: %w", dev.attrs.name, err) }