mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix shouldDomainValidationBeSkipped
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
db620e035a
commit
5ece00e496
1 changed files with 2 additions and 3 deletions
|
|
@ -199,7 +199,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
// Skip domain validation if opted in to do so
|
||||
if ($this->shouldDomainValidationBeSkipped()) {
|
||||
if (!$this->shouldDomainValidationBeSkipped()) {
|
||||
|
||||
$dnsRecordIP = gethostbyname($domain);
|
||||
if ($dnsRecordIP === $domain) {
|
||||
|
|
@ -562,8 +562,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
public function shouldDomainValidationBeSkipped() : bool {
|
||||
$envVariableOutput = getenv('SKIP_DOMAIN_VALIDATION');
|
||||
if ($envVariableOutput !== false) {
|
||||
if (getenv('SKIP_DOMAIN_VALIDATION') !== false) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue