diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-02-26 17:27:17 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-02-26 17:27:17 +0100 |
commit | 67c6f37e269a4ebb538e019351f894183f3c1439 (patch) | |
tree | 6868722efeb660c0031a22aecfdc4b2c5bc9dcc6 /app/workers/scheduler/email_domain_block_refresh_scheduler.rb | |
parent | 756f1b6615ac858c958468d1306c39a06db551bb (diff) | |
parent | 6aef76b5cde2315135d53215d13a9b2ec0a1adaa (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/workers/scheduler/email_domain_block_refresh_scheduler.rb')
-rw-r--r-- | app/workers/scheduler/email_domain_block_refresh_scheduler.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/scheduler/email_domain_block_refresh_scheduler.rb b/app/workers/scheduler/email_domain_block_refresh_scheduler.rb index c67be6843..e0ad89866 100644 --- a/app/workers/scheduler/email_domain_block_refresh_scheduler.rb +++ b/app/workers/scheduler/email_domain_block_refresh_scheduler.rb @@ -15,7 +15,8 @@ class Scheduler::EmailDomainBlockRefreshScheduler if ip?(email_domain_block.domain) [email_domain_block.domain] else - dns.getresources(email_domain_block.domain, Resolv::DNS::Resource::IN::A).to_a + dns.getresources(email_domain_block.domain, Resolv::DNS::Resource::IN::AAAA).to_a.map { |resource| resource.address.to_s } + resources = dns.getresources(email_domain_block.domain, Resolv::DNS::Resource::IN::A).to_a + dns.getresources(email_domain_block.domain, Resolv::DNS::Resource::IN::AAAA).to_a + resources.map { |resource| resource.address.to_s } end end |