From 680f80067e05fcd1b79b3b8689060c5465eea473 Mon Sep 17 00:00:00 2001 From: M.Gergő Date: Mon, 25 May 2020 19:45:03 +0200 Subject: Comments --- ubnt_unifi.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ubnt_unifi.php') diff --git a/ubnt_unifi.php b/ubnt_unifi.php index 61fa0b9..f76badb 100644 --- a/ubnt_unifi.php +++ b/ubnt_unifi.php @@ -434,7 +434,7 @@ return $ret; - +/********************* START *******************/ $hosts = explode(" ", $hosts); @@ -443,16 +443,14 @@ $mask = @explode('/', $devnetw)[1]; $hosts2 = array(); $hostsip = array(); -echo "\n netmask \n"; if($mask != 0 ){ for($i=1; $i<(1 << (32 - $mask)); $i++ ){ // fetch ip addresses from given network and mask $hosts2[] = long2ip((ip2long($netw) & ~((1 << (32 - $mask)) -1)) +$i ) ; } } -echo "\nhosts\n"; /******* */ foreach($hosts as $key => $val){ // delete addresses which are given by hostname - echo "\t$val\n"; /************ */ + $hostsip[$key] = array(); $hostsip[$key]['hs'] = $val; putenv('RES_OPTIONS="retrans:1 retry:1 timeout:1 attempts:1"'); //faster name resolving ? -- cgit v1.2.3