Fix OverrideGateway

This commit is contained in:
Shtorm
2026-04-30 19:19:40 +03:00
parent ab21560d09
commit 851ac2322e

View File

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