Skip to content

Commit

Permalink
Merge pull request #19 from McJoppy/verify-challenge-cname
Browse files Browse the repository at this point in the history
Allow the use of DNS CNAME to verify ownership of domain.
  • Loading branch information
stonemax authored May 24, 2018
2 parents e9e36d5 + 12ad706 commit 2164c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/CommonHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function checkDNSChallenge($domain, $dnsContent)
{
foreach ($recordList as $record)
{
if ($record['host'] == $host && $record['type'] == 'TXT' && $record['txt'] == $dnsContent)
if ($record['type'] == 'TXT' && $record['txt'] == $dnsContent)
{
return TRUE;
}
Expand Down

0 comments on commit 2164c30

Please sign in to comment.