summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadiq Saif <[email protected]>2018-11-23 11:38:43 -0500
committerHiroshi SHIBATA <[email protected]>2024-10-03 15:04:46 +0900
commit1b3f18afce19a693921e3021f81bd1289b113036 (patch)
treebbaf4b4c5ffa4276dc4daf0b53c61ea5399776c4
parent4cd893b0487b9a853a57d1e9cdc461bd0dd6de8f (diff)
each_address should now resolve for AAAA first
AAAA over A is standards track behaviour as per RFC 6724.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2024
-rw-r--r--lib/resolv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 0574ce622b..47ea97deff 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -396,10 +396,10 @@ class Resolv
# be a Resolv::IPv4 or Resolv::IPv6
def each_address(name)
- each_resource(name, Resource::IN::A) {|resource| yield resource.address}
if use_ipv6?
each_resource(name, Resource::IN::AAAA) {|resource| yield resource.address}
end
+ each_resource(name, Resource::IN::A) {|resource| yield resource.address}
end
def use_ipv6? # :nodoc: