diff options
author | Florian Hibler <florian.hibler@kaiaglobal.com> | 2015-02-26 17:43:34 +0000 |
---|---|---|
committer | Florian Hibler <florian.hibler@kaiaglobal.com> | 2015-02-26 17:43:34 +0000 |
commit | 87c2ad0f0987b71f2bb01a5907b97750af125ccf (patch) | |
tree | 9edc98544814be1176911db3a8d5b4e3a690d24d | |
parent | 76e46e37650653697ed234b134a881edd598b255 (diff) |
Resolves #81
-rw-r--r-- | lib/oxidized/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 2d41600..253de53 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -11,7 +11,7 @@ module Oxidized def initialize opt @name = opt[:name] @ip = IPAddr.new(opt[:ip]).to_s rescue nil - @ip ||= Resolv.getaddress @name + @ip ||= Resolv.new.getaddress @name @group = opt[:group] @input = resolve_input opt @output = resolve_output opt |