Skip to content

Commit

Permalink
Fix failing IPFunction unit tests.
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <taylor.curran@improving.com>
  • Loading branch information
currantw committed Oct 29, 2024
1 parent aa1c38b commit bef53cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private ExprValue exprCidr(ExprValue addressExprValue, ExprValue rangeExprValue)
InetAddress rangeAddress = InetAddresses.forString(rangeAddressString);

// Address and range must use the same IP version (IPv4 or IPv6).
if (address.getClass().equals(rangeAddress.getClass())) {
if (!address.getClass().equals(rangeAddress.getClass())) {
return ExprValueUtils.booleanValue(false);
}

Expand Down

0 comments on commit bef53cc

Please sign in to comment.