diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/resolv.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index 8f6b186bbf..1f549a4710 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -1032,7 +1032,7 @@ class Resolv def ==(other) # :nodoc: return false unless Name === other - return @labels == other.to_a && @absolute == other.absolute? + return @labels.join == other.to_a.join && @absolute == other.absolute? end alias eql? == # :nodoc: @@ -1262,7 +1262,7 @@ class Resolv end def put_label(d) - self.put_string(d.string) + self.put_string(d.to_s) end end @@ -2180,7 +2180,7 @@ class Resolv def to_name return DNS::Name.new( - @address.unpack("H32")[0].split(//).reverse + ['ip6', 'int']) + @address.unpack("H32")[0].split(//).reverse + ['ip6', 'arpa']) end def ==(other) # :nodoc: |