summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 13:58:31 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 13:58:31 +0000
commitdb590b5d599598e025ba625bc4cc1e39f910c640 (patch)
tree4224bf83f4d67b705d779ab563567d63b8f3b08d /lib/resolv.rb
parent926103a958c9719074f190fb7ac622a160008313 (diff)
Fixed unexpected behavior of `Resolv::MDNS#each_address` when given ".local" address.
https://github.com/ruby/ruby/pull/1425 Patch by @elct9620 [fix GH-1484] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r--lib/resolv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index ae9223e751..1044b95e68 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -2603,7 +2603,7 @@ class Resolv
def each_address(name)
name = Resolv::DNS::Name.create(name)
- return unless name.to_a.last == 'local'
+ return unless name.to_a.last.to_s == 'local'
super(name)
end