Commit 0643a23f authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'stable-3.1' into 'stable-3.1'

remoting.inc.php

See merge request ispconfig/ispconfig3!777
parents 38b5ec8d 3ea273b2
......@@ -151,6 +151,7 @@ class remoting {
// get the ip for a hostname
unset($allowed_ips[$i]);
$temp=dns_get_record($allowed, DNS_A+DNS_AAAA);
if(is_array($temp) && !empty($temp)) {
foreach($temp as $t) {
if(isset($t['ip'])) $allowed_ips[] = $t['ip'];
if(isset($t['ipv6'])) $allowed_ips[] = $t['ipv6'];
......@@ -159,6 +160,7 @@ class remoting {
}
}
}
}
$allowed_ips[] = '127.0.0.1';
$allowed_ips[] = '::1';
$allowed_ips=array_unique($allowed_ips);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment