Skip to content

Commit

Permalink
fix mistake to announce ipv4 (#4497)
Browse files Browse the repository at this point in the history
Signed-off-by: oilbeater <[email protected]>
  • Loading branch information
oilbeater committed Sep 17, 2024
1 parent 544f2ad commit a3c6676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/speaker/eip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit a3c6676

Please sign in to comment.