Actions
Bug #19705
closedRuby IPAddr class accepting wrong IPv6 address string
Description
We are middle of upgrading ruby versions v2.7.3 -> v3.1.3
One of our test cases are failing related to valid ipv6 address string, check the following
# ruby 2.7.3
IPAddr.new('fe80::85e:7530:69ec:9074%en0').ipv6?
=> IPAddr::InvalidAddressError (invalid address: fe80::85e:7530:69ec:9074%en0)
# ruby 3.1.3
IPAddr.new('fe80::85e:7530:69ec:9074%en0').ipv6?
=> true
Is it really a bug or am I missing something? Please help.
P.S. Stackoverflow link: https://stackoverflow.com/q/76380777/6548745
Updated by jeremyevans0 (Jeremy Evans) almost 2 years ago
- Status changed from Open to Rejected
It's expected that IPv6 with zone identifiers addresses are supported starting in Ruby 3.1 (ipaddr 1.2.3). See #10911 and https://github.com/ruby/ipaddr/pull/24.
Actions
Like0
Like0