Fix OverrideGateway

This commit is contained in:
Sergei Maklagin
2026-04-30 19:19:40 +03:00
parent b2503ca860
commit ee2945ac8f

View File

@@ -485,7 +485,7 @@ match:
Fqdn: metadata.Destination.Fqdn, Fqdn: metadata.Destination.Fqdn,
} }
} }
if routeOptions.OverrideGateway.IsValid() { if routeOptions.OverrideGateway != nil && routeOptions.OverrideGateway.IsValid() {
metadata.Gateway = routeOptions.OverrideGateway metadata.Gateway = routeOptions.OverrideGateway
} }
if routeOptions.NetworkStrategy != nil { if routeOptions.NetworkStrategy != nil {