Skip to content

Commit 5853b55

Browse files
authored
[client] Skip interface for route lookup if it doesn't exist (#4524)
1 parent 998fb30 commit 5853b55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/internal/routemanager/systemops/systemops_windows.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,8 @@ func GetBestInterface(dest netip.Addr, vpnIntf string) (*net.Interface, error) {
908908
if iface, err := net.InterfaceByName(vpnIntf); err == nil {
909909
skipInterfaceIndex = iface.Index
910910
} else {
911-
return nil, fmt.Errorf("get VPN interface %s: %w", vpnIntf, err)
911+
// not critical, if we cannot get ahold of the interface then we won't need to skip it
912+
log.Warnf("failed to get VPN interface %s: %v", vpnIntf, err)
912913
}
913914
}
914915

0 commit comments

Comments
 (0)