From: cardoso_tiago@... Date: 2018-03-17T23:52:46+00:00 Subject: [ruby-core:86170] [Ruby trunk Bug#14612] IPv6 address inconsistency (downcase vs. upcase) Issue #14612 has been reported by chucke (Tiago Cardoso). ---------------------------------------- Bug #14612: IPv6 address inconsistency (downcase vs. upcase) https://bugs.ruby-lang.org/issues/14612 * Author: chucke (Tiago Cardoso) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.5.0 * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- I've noticed that sometimes ip addresses re shown using a-f characters in downcase, other times upcase. Here is a small script to show results: ```ruby require "resolv" require "socket" puts TCPSocket.getaddress("nghttp2.org") #=> "2400:8902::f03c:91ff:fe69:a454" puts Resolv.getaddresses("nghttp2.org") #=> ["139.162.123.134", "2400:8902::F03C:91FF:FE69:A454"] ``` Results might be system-dependent (I'm using Mac OS High Sierra). This makes compare operations a bit harder. -- https://bugs.ruby-lang.org/ Unsubscribe: