- /* only accept 127.0.0.x as a listing */
- listed = reply->addr.ss_family == AF_INET &&
- !memcmp(&((struct sockaddr_in *)&reply->addr)->sin_addr, "\177\0\0", 3);
+ /* only accept 127.x.y.z as a listing */
+ if (reply->addr.ss_family == AF_INET &&
+ !memcmp(&((struct sockaddr_in *)&reply->addr)->sin_addr, "\177", 1))
+ listed = TRUE;
+ else if (blcptr->blacklist->lastwarning + 3600 < rb_current_time())
+ {
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "Garbage reply from blacklist %s",
+ blcptr->blacklist->host);
+ blcptr->blacklist->lastwarning = rb_current_time();
+ }