diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-03 11:52:31 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-03 11:52:31 +1100 |
| commit | dbe330298729cdaa9c07e72e8778daad0a87e1c3 (patch) | |
| tree | fffb87c4c36dd1052d361d2bda25e32d88aa4d41 /mod.php | |
| parent | 3979d9a7406976c0492cdc4c04dca06bfcde73aa (diff) | |
Avoid DNS timeouts by using `host` and cache if available
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']); |
