Skip to content

Commit

Permalink
fix wrong comment on method to detect IPs out of ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 27, 2024
1 parent 967ad95 commit 69360e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func (r *RepairIPAddress) syncIPAddress(key string) error {

}

// isIPOutOfRange returns false if the IP is not contained in any of the ServiceCIDRs
// isIPOutOfRange returns true if the IP is not contained in any of the ServiceCIDRs
func (r *RepairIPAddress) isIPOutOfRange(ip net.IP) bool {
return len(servicecidr.ContainsIP(r.serviceCIDRLister, ip)) == 0
}
Expand Down

0 comments on commit 69360e9

Please sign in to comment.