Method: IPAccess::Socket#whitelist
- Defined in:
- lib/ipaccess/ghost_doc/ghost_doc_sockets.rb
#whitelist(*addresses) ⇒ Object
This method whitelists IP address(-es) in the input or output access list selected by the list argument (:input or :output). If the access list selector is omited it operates on the default access list that certain kind of network object uses. The allowed format of address is the same as for IPAccess.to_cidrs. This method will not add nor remove any blacklisted item.
Restrictions
This method won’t allow you to modify the list if the global access set is associated with an object. You may operate on IPAccess::Set.Global or use whitelist! instead.
Return value
It will return the result of calling IPAccess::List#whitelist on the list.
Revalidation
After modyfing access set current connection is validated again to avoid access leaks.
DNS Warning
You should avoid passing hostnames as arguments since DNS is not reliable and responses may change with time, which may cause security flaws.
@overload(*addresses) @overload(list, *addresses)
114 |
# File 'lib/ipaccess/ghost_doc/ghost_doc_sockets.rb', line 114 def whitelist(*addresses); end |