From dbe330298729cdaa9c07e72e8778daad0a87e1c3 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 3 Dec 2011 11:52:31 +1100 Subject: Avoid DNS timeouts by using `host` and cache if available --- mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 34a540f7..453e6737 100644 --- a/mod.php +++ b/mod.php @@ -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']); -- cgit v1.3