Issue #12061 has been updated by Stephen Misk.

Description updated

----------------------------------------
Bug #12061: DNS resolv error RuntimeError: can't modify frozen String  when using IPv6 Addresses
https://bugs.ruby-lang.org/issues/12061#change-56948

* Author: Stephen Misk
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Just upgraded from Ruby 1.9.3-p194 to Ruby 2.3.0

eventmachine (1.0.9.1)
eventmachine_httpserver (0.2.1)

irb
2.3.0 :001 > require 'eventmachine'
 => true
2.3.0 :002 > Resolv::IPv6.create('2607:F8B0:4002:C0C::66')
RuntimeError: can't modify frozen String
	from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in `block in create'
	from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in `scan'
	from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/resolv.rb:2462:in `create'
	from (irb):2
	from /usr/local/rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'
2.3.0 :003 > Resolv::IPv4.create('74.125.226.19')
 => #\<Resolv::IPv4 74.125.226.19>
2.3.0 :004 >



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>