Fix CIDR comparison (master branch only)