mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-01 03:22:48 +08:00
ip-addresses are not supported as domain
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
11edcfe142
commit
d988706ae0
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,11 @@ class ConfigurationManager
|
|||
throw new InvalidSettingConfigurationException("Domain is not in a valid format!");
|
||||
}
|
||||
|
||||
// Validate that it is not an IP-address
|
||||
if(filter_var($domain, FILTER_VALIDATE_IP)) {
|
||||
throw new InvalidSettingConfigurationException("Please enter a domain and not an IP-address!");
|
||||
}
|
||||
|
||||
$dnsRecordIP = gethostbyname($domain);
|
||||
|
||||
// Validate IP
|
||||
|
|
Loading…
Reference in a new issue