mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-18 03:17:39 +08:00
domain validation should be compatible with ipv6 only
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
dfb672811f
commit
00c6eeda44
1 changed files with 7 additions and 0 deletions
|
@ -203,6 +203,13 @@ class ConfigurationManager
|
|||
$dnsRecordIP = '';
|
||||
}
|
||||
|
||||
if (empty($dnsRecordIP)) {
|
||||
$record = dns_get_record($domain, DNS_AAAA);
|
||||
if (!empty($record)) {
|
||||
$dnsRecordIP = $record[0]['ipv6'];
|
||||
}
|
||||
}
|
||||
|
||||
// Validate IP
|
||||
if(!filter_var($dnsRecordIP, FILTER_VALIDATE_IP)) {
|
||||
throw new InvalidSettingConfigurationException("DNS config is not set for this domain or the domain is not a valid domain! (It was found to be set to '" . $dnsRecordIP . "')");
|
||||
|
|
Loading…
Reference in a new issue