Updated to return false instead of "Invalid Response"

Invalid responses and "non-threatening" IP address results come back as the same thing. I couldn't find a way to get it to return something more alerting when the DNS lookup failed, so this will have to do. If you're caching your results for a short period of time, then any issues with the API should correct themselves within the TTL of your data
This commit is contained in:
Josh Sherman 2012-05-16 22:29:47 -04:00
parent 1d4dacd3c2
commit 4069d2ddb9

View file

@ -85,7 +85,7 @@ class ProjectHoneyPot
} }
else else
{ {
return array('error' => 'Invalid Response'); return false;
} }
} }