lib/truemail/validate/mx.rb in truemail-3.0.8 vs lib/truemail/validate/mx.rb in truemail-3.0.9
- old
+ new
@@ -68,10 +68,10 @@
Truemail::Dns::Resolver.a_record(hostname, configuration: configuration)
end
def hosts_from_cname_records?
cname_records = Truemail::Dns::Resolver.cname_records(domain, configuration: configuration)
- return if cname_records.empty?
+ return false if cname_records.empty?
cname_records.each do |cname_record|
host = a_record(cname_record.name.to_s)
hostname = Truemail::Dns::Resolver.dns_lookup(host, configuration: configuration)
found_hosts = mx_records(hostname)
fetch_target_hosts(found_hosts.empty? ? [host] : found_hosts)