From 5853b5553c9b9e80322add7ae5076ba5cea2b74c Mon Sep 17 00:00:00 2001 From: Viktor Liu <17948409+lixmal@users.noreply.github.com> Date: Mon, 22 Sep 2025 14:32:00 +0200 Subject: [PATCH] [client] Skip interface for route lookup if it doesn't exist (#4524) --- client/internal/routemanager/systemops/systemops_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/internal/routemanager/systemops/systemops_windows.go b/client/internal/routemanager/systemops/systemops_windows.go index 95645329e..7bce6af80 100644 --- a/client/internal/routemanager/systemops/systemops_windows.go +++ b/client/internal/routemanager/systemops/systemops_windows.go @@ -908,7 +908,8 @@ func GetBestInterface(dest netip.Addr, vpnIntf string) (*net.Interface, error) { if iface, err := net.InterfaceByName(vpnIntf); err == nil { skipInterfaceIndex = iface.Index } else { - return nil, fmt.Errorf("get VPN interface %s: %w", vpnIntf, err) + // not critical, if we cannot get ahold of the interface then we won't need to skip it + log.Warnf("failed to get VPN interface %s: %v", vpnIntf, err) } }