From a3c6676ab8e13f13ec55e9d9ad34f65c95fa69bd Mon Sep 17 00:00:00 2001 From: Mengxin Liu Date: Tue, 17 Sep 2024 19:45:08 +0800 Subject: [PATCH] fix mistake to announce ipv4 (#4497) Signed-off-by: oilbeater --- pkg/speaker/eip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/speaker/eip.go b/pkg/speaker/eip.go index b525c542910..8e94382edbc 100644 --- a/pkg/speaker/eip.go +++ b/pkg/speaker/eip.go @@ -47,7 +47,7 @@ func (c *Controller) announceEIPs(eips []*v1.IptablesEIP) error { addExpectedPrefix(eip.Spec.V4ip, expectedPrefixes) } - if eip.Spec.V4ip != "" { // If we have an IPv6, add it to prefixes we should be announcing + if eip.Spec.V6ip != "" { // If we have an IPv6, add it to prefixes we should be announcing addExpectedPrefix(eip.Spec.V6ip, expectedPrefixes) } }