Skip to content

Commit 2d0825e

Browse files
rgo3pchaigno
authored andcommitted
pkg/egressgateway: ensure gateway IP is IPv4
If the agent assigns a IPv6 IP as the gateway IP packets will be dropped because the egress gateway feature doesn't support a IPv6 underlay. This commit ensures the IP chosen as the gateway IP is IPv4. Fixes: cilium#39985 Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
1 parent f356ddc commit 2d0825e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/egressgateway/policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (config *PolicyConfig) regenerateGatewayConfig(manager *Manager) {
129129
continue
130130
}
131131

132-
addr, ok := netipx.FromStdIP(node.GetK8sNodeIP())
132+
addr, ok := netipx.FromStdIP(node.GetNodeIP(false))
133133
if !ok {
134134
continue
135135
}

0 commit comments

Comments
 (0)