mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/ipaddr] Improve Ractor-compliance
https://github.com/ruby/ipaddr/commit/73461724e5
This commit is contained in:
parent
e76a550876
commit
70e6be2b05
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ class IPAddr
|
|||
# 128 bit mask for IPv6
|
||||
IN6MASK = 0xffffffffffffffffffffffffffffffff
|
||||
# Format string for IPv6
|
||||
IN6FORMAT = (["%.4x"] * 8).join(':')
|
||||
IN6FORMAT = (["%.4x"] * 8).join(':').freeze
|
||||
|
||||
# Regexp _internally_ used for parsing IPv4 address.
|
||||
RE_IPV4ADDRLIKE = %r{
|
||||
|
@ -736,7 +736,7 @@ end
|
|||
unless Socket.const_defined? :AF_INET6
|
||||
class Socket < BasicSocket
|
||||
# IPv6 protocol family
|
||||
AF_INET6 = Object.new
|
||||
AF_INET6 = Object.new.freeze
|
||||
end
|
||||
|
||||
class << IPSocket
|
||||
|
|
Loading…
Reference in a new issue