diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-11 18:26:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-11 18:26:49 +0000 |
commit | 9e677261a9147616c32bb32004fcf99e868563d7 (patch) | |
tree | 124e312cac136adaa10e5d85b34f4ebf3805f524 /lib | |
parent | ddb799637200af5efa861021b003ab06ef71d973 (diff) | |
download | ruby-9e677261a9147616c32bb32004fcf99e868563d7.tar.gz |
Mock fetching data from real DNS [Feature #14340]
This test just tests MDNS#each_address method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61774 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 48ee400efe..d38204eeca 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.to_s == 'local' + return unless name[-1].to_s == 'local' super(name) end |