fix let's encrypt dns validation check caused by issue in PhpHelper::gethostbynamel6()

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-01-31 17:32:56 +01:00
parent 8378795f5d
commit 67fc762eef

View File

@@ -263,7 +263,7 @@ class PhpHelper
try {
$answer = $resolver->query($host, 'A')->answer;
foreach ($answer as $rr) {
if ($rr instanceof Net_DNS2_RR_A) {
if ($rr instanceof \Net_DNS2_RR_A) {
$ips[] = inet_ntop(inet_pton($rr->address));
}
}
@@ -276,7 +276,7 @@ class PhpHelper
try {
$answer = $resolver->query($host, 'AAAA')->answer;
foreach ($answer as $rr) {
if ($rr instanceof Net_DNS2_RR_AAAA) {
if ($rr instanceof \Net_DNS2_RR_AAAA) {
$ips[] = inet_ntop(inet_pton($rr->address));
}
}