about summary refs log tree commit diff
path: root/app/validators
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-02-12 20:32:48 +0100
committerThibaut Girka <thib@sitedethib.com>2019-02-12 20:32:48 +0100
commit0e34e91661d47ffbb08121c74c8a2de5266de0c8 (patch)
tree949024a721989fb2de04de0412cdbdbd41990e36 /app/validators
parenta3ba28eb17d75af37396359e8c37675e06605ccf (diff)
parent2f80a348c9de3de6dbf220f9e12d5906042b3f73 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/email_mx_validator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/validators/email_mx_validator.rb b/app/validators/email_mx_validator.rb
index 5b4c684b2..96fbedcfc 100644
--- a/app/validators/email_mx_validator.rb
+++ b/app/validators/email_mx_validator.rb
@@ -24,6 +24,7 @@ class EmailMxValidator < ActiveModel::Validator
 
       ([domain] + hostnames).uniq.each do |hostname|
         ips.concat(dns.getresources(hostname, Resolv::DNS::Resource::IN::A).to_a.map { |e| e.address.to_s })
+        ips.concat(dns.getresources(hostname, Resolv::DNS::Resource::IN::AAAA).to_a.map { |e| e.address.to_s })
       end
     end