mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:40:16 +00:00
Merge pull request #5167 from VVelox/develop
a domain name is unlikely to be both a CNAME and A record
This commit is contained in:
commit
e3584daef9
1 changed files with 4 additions and 1 deletions
|
@ -492,7 +492,10 @@ class Network
|
|||
|
||||
$h = substr($addr, strpos($addr, '@') + 1);
|
||||
|
||||
if (($h) && (dns_get_record($h, DNS_A + DNS_CNAME + DNS_MX) || filter_var($h, FILTER_VALIDATE_IP) )) {
|
||||
if (($h) && (dns_get_record($h, DNS_A + DNS_MX) || filter_var($h, FILTER_VALIDATE_IP) )) {
|
||||
return true;
|
||||
}
|
||||
if (($h) && dns_get_record($h, DNS_CNAME + DNS_MX)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue