Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 4069d2ddb9fbf7fb1ee1d37f8b01a7113ed06fbb 1 parent 1d4dacd
Josh Sherman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ProjectHoneyPot.php
2  ProjectHoneyPot.php
View
@@ -85,7 +85,7 @@ public function query($ip_address)
}
else
{
- return array('error' => 'Invalid Response');
+ return false;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.