forked from leftypol/leftypol
Avoid DNS timeouts by using host
and cache if available
This commit is contained in:
parent
3979d9a740
commit
dbe3302987
3 changed files with 29 additions and 1 deletions
2
mod.php
2
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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue