diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:58:31 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 13:58:31 +0000 |
commit | 74e6230db5de662caf12de4a394548bed0463767 (patch) | |
tree | 4224bf83f4d67b705d779ab563567d63b8f3b08d /lib | |
parent | d88f288d0adc44671d45d96c60099012960e0681 (diff) | |
download | ruby-74e6230db5de662caf12de4a394548bed0463767.tar.gz |
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')
-rw-r--r-- | lib/resolv.rb | 2 |
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 |