Avoid DNS timeouts by using host and cache if available

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

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']);