Avoid DNS timeouts by using host and cache if available

This commit is contained in:
Savetheinternet committed 2011-12-03 11:52:31 +11:00
1 parent 3979d9a740
commit dbe3302987
3 files changed
+29 -1

No files matched your search

+1 -1
View File
@@ -2408,7 +2408,7 @@
// View information on an IP address
$ip = $matches[1];
$host = $config['mod']['dns_lookup'] ? gethostbyaddr($ip) : false;
$host = $config['mod']['dns_lookup'] ? rDNS($ip) : false;
if(hasPermission($config['mod']['unban']) && isset($_POST['unban']) && isset($_POST['ban_id'])) {
removeBan($_POST['ban_id']);