summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-03 11:52:31 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-03 11:52:31 +1100
commitdbe330298729cdaa9c07e72e8778daad0a87e1c3 (patch)
treefffb87c4c36dd1052d361d2bda25e32d88aa4d41 /mod.php
parent3979d9a7406976c0492cdc4c04dca06bfcde73aa (diff)
Avoid DNS timeouts by using `host` and cache if available
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
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']);