Fix error in CLI EmailDomainBlocks when supplying --with-dns-records
(#32863)
This commit is contained in:
parent
2bd56f726a
commit
a6d829e86f
2 changed files with 17 additions and 1 deletions
|
@ -48,7 +48,7 @@ module Mastodon::CLI
|
|||
if options[:with_dns_records]
|
||||
Resolv::DNS.open do |dns|
|
||||
dns.timeouts = 5
|
||||
other_domains = dns.getresources(@email_domain_block.domain, Resolv::DNS::Resource::IN::MX).to_a
|
||||
other_domains = dns.getresources(domain, Resolv::DNS::Resource::IN::MX).to_a.map { |e| e.exchange.to_s }.compact_blank
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue