summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/resolv.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index c19aeacd05..f6971bf500 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -1236,7 +1236,8 @@ class Resolv
def ==(other) # :nodoc:
return false unless Name === other
- return @labels.join == other.to_a.join && @absolute == other.absolute?
+ return @labels.join('.') == other.to_a.join('.') &&
+ @absolute == other.absolute?
end
alias eql? == # :nodoc: