From 01fa9934bce4fe49e8fe7c97ecfd74eaf2c9d807 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 25 Aug 2024 07:01:33 +0000 Subject: [PATCH] hotfix(routing): detect vpn local gateway with new routes listing --- internal/routing/vpn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/routing/vpn.go b/internal/routing/vpn.go index ef620280..96a69849 100644 --- a/internal/routing/vpn.go +++ b/internal/routing/vpn.go @@ -31,7 +31,7 @@ func (r *Routing) VPNLocalGatewayIP(vpnIntf string) (ip netip.Addr, err error) { } switch { - case route.Dst.IsValid() && route.Dst.Addr().IsUnspecified(): // OpenVPN + case route.Dst.IsValid() && route.Dst.Addr().IsUnspecified() && route.Gw.IsValid(): // OpenVPN return route.Gw, nil case route.Dst.IsSingleIP() && route.Dst.Addr().Compare(route.Src) == 0 &&