989772c9ac
had both lines: Author: ... WWW: .... So standardize on that, and move them to the end of the file when necessary. Also fix some more whitespace, and remove more "signature tags" of varying forms, like -- name, etc. s/AUTHOR/Author/ A few other various formatting issues
16 lines
329 B
Text
16 lines
329 B
Text
Ruby-acl provides Access Control List checks.
|
|
|
|
list = %w(
|
|
deny all
|
|
allow 192.168.1.*
|
|
allow 127.0.0.1
|
|
)
|
|
acl = ACL.new(list, ACL::DENY_ALLOW)
|
|
...
|
|
ns = soc.accept
|
|
unless acl.allow_socket?(ns)
|
|
# forbidden
|
|
end
|
|
|
|
Author: Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
|
WWW: http://www.ruby-lang.org/raa/list.rhtml?name=acl
|