summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrm155 <rohitmenon@verizon.net>2021-07-19 21:48:33 -0400
committergit <svn-admin@ruby-lang.org>2022-09-08 14:09:06 +0900
commit70e6be2b055d78d3c475368d744c423564597f6e (patch)
treef63b47e8f3e33d9fff4250155d176b4df19e88b2 /lib
parente76a550876356093a0e48bd540ae80daafedcba0 (diff)
downloadruby-70e6be2b055d78d3c475368d744c423564597f6e.tar.gz
[ruby/ipaddr] Improve Ractor-compliance
https://github.com/ruby/ipaddr/commit/73461724e5
Diffstat (limited to 'lib')
-rw-r--r--lib/ipaddr.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 459b8478a0..7a99069faf 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -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