Skip to content

Commit 96f1ab0

Browse files
committed
Update installer_base.lib.php to fix line 2409-2410.
1 parent f93c382 commit 96f1ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,8 +2406,8 @@ public function make_ispconfig_ssl_cert() {
24062406

24072407
// Check dns a record exist and its ip equal to server public ip
24082408
$svr_ip = file_get_contents('http://dynamicdns.park-your-domain.com/getip');
2409-
if (checkdnsrr(idn_to_ascii($hostname), 'A')) {
2410-
$dns_A=dns_get_record($hostname, DNS_A); $dns_ip=$dns_A[0][ip];
2409+
if (checkdnsrr(idn_to_ascii($hostname, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46), 'A')) {
2410+
$dnsa=dns_get_record($hostname, DNS_A); $dns_ip=$dnsa[0]['ip'];
24112411
}
24122412

24132413
// Check if LE SSL folder for the hostname existed

0 commit comments

Comments
 (0)