End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
ACL#allow_addr?
allow_addr?(addr)
lib/drb/acl.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/drb/acl.rb, line 203
def allow_addr?(addr)
case @order
when DENY_ALLOW
return true if @allow.match(addr)
return false if @deny.match(addr)
return true
when ALLOW_DENY
return false if @deny.match(addr)
return true if @allow.match(addr)
return false
else
false
end
end
Allow connections from addrinfo addr? It must be formatted like Socket#peeraddr:
Example
["AF_INET", 10, "lc630", "192.0.2.1"]