fix shouldDomainValidationBeSkipped

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-07-04 15:32:39 +02:00
parent db620e035a
commit 5ece00e496

View file

@ -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;