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