Skip to content
Snippets Groups Projects
Commit 3ea273b2 authored by Florian Schaal's avatar Florian Schaal
Browse files

remoting.inc.php

parent 38b5ec8d
No related branches found
No related tags found
1 merge request!777remoting.inc.php
...@@ -151,11 +151,13 @@ class remoting { ...@@ -151,11 +151,13 @@ class remoting {
// get the ip for a hostname // get the ip for a hostname
unset($allowed_ips[$i]); unset($allowed_ips[$i]);
$temp=dns_get_record($allowed, DNS_A+DNS_AAAA); $temp=dns_get_record($allowed, DNS_A+DNS_AAAA);
foreach($temp as $t) { if(is_array($temp) && !empty($temp)) {
if(isset($t['ip'])) $allowed_ips[] = $t['ip']; foreach($temp as $t) {
if(isset($t['ipv6'])) $allowed_ips[] = $t['ipv6']; if(isset($t['ip'])) $allowed_ips[] = $t['ip'];
if(isset($t['ipv6'])) $allowed_ips[] = $t['ipv6'];
}
unset($temp);
} }
unset($temp);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment