summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index cc12ce78..3fa99021 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1005,9 +1005,11 @@
foreach($config['dnsbl'] as &$blacklist) {
$lookup = $ip . '.' . $blacklist;
- if(gethostbyname($lookup) != $lookup) {
+ $host = gethostbyname($lookup);
+ if($host != $looku) {
// On NXDOMAIN (meaning it's not in the blacklist), gethostbyname() returns the host unchanged.
- error(sprintf($config['error']['dnsbl'], $blacklist));
+ if(preg_match('/^127\.0\.0\./', $host) && $host != '127.0.0.10')
+ error(sprintf($config['error']['dnsbl'], $blacklist));
}
}
}