Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Helmo
ISPConfig 3
Commits
0643a23f
Commit
0643a23f
authored
May 07, 2018
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
0643a23f
...
...
@@ -151,11 +151,13 @@ class remoting {
// get the ip for a hostname
unset
(
$allowed_ips
[
$i
]);
$temp
=
dns_get_record
(
$allowed
,
DNS_A
+
DNS_AAAA
);
foreach
(
$temp
as
$t
)
{
if
(
isset
(
$t
[
'ip'
]))
$allowed_ips
[]
=
$t
[
'ip'
];
if
(
isset
(
$t
[
'ipv6'
]))
$allowed_ips
[]
=
$t
[
'ipv6'
];
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'
];
}
unset
(
$temp
);
}
unset
(
$temp
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment