wfDebug("Checking $wlEntry\n");
# Is the IP in this range?
- if (IP::isAddressInRange( $autoblockip, $wlEntry )) {
- wfDebug("IP $autoblockip matches $wlEntry, not autoblocking\n");
+ if (IP::isAddressInRange( $ip, $wlEntry )) {
+ wfDebug("IP $ip matches $wlEntry, not autoblocking\n");
return true; #This /SHOULD/ introduce a dummy block - but
# I don't know a safe way to do so. -werdna
}
}
/**
- * Determine if a given integer IPv4 address is in a given range
- * @param int $addr
+ * Determine if a given IPv4 address is in a given range
+ * @param string $addr Dotted quad
* @param string $range (CIDR, hyphenated dotted-quad, or single dotted-quad)
* @return bool Whether or not the given address is in the given range. Returns false on error.
*/