summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-04-23 12:24:08 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-04-23 12:24:08 +0200
commit22ef1e32c51ac82df8d6a03e1e95876100e8f6c1 (patch)
treef7a7b546711a8e243b2ebf139b4ea62867c74b47 /inc
parent8a803cae76e430dc0f358986db3420ef45049370 (diff)
downloadrpg-22ef1e32c51ac82df8d6a03e1e95876100e8f6c1.tar.gz
rpg-22ef1e32c51ac82df8d6a03e1e95876100e8f6c1.tar.bz2
added option to disable reverse DNS lookups
Diffstat (limited to 'inc')
-rw-r--r--inc/common.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php
index 22a315901..6ea536c44 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -676,10 +676,15 @@ function clientismobile(){
/**
* Convert one or more comma separated IPs to hostnames
*
+ * If $conf['dnslookups'] is disabled it simply returns the input string
+ *
* @author Glen Harris <astfgl@iamnota.org>
* @returns a comma separated list of hostnames
*/
function gethostsbyaddrs($ips){
+ global $conf;
+ if(!$conf['dnslookups']) return $ips;
+
$hosts = array();
$ips = explode(',',$ips);