Exit Policy API.
Authors: Alexander Færøy (ahf@0x90.dk
).
default/0 | Returns a sensible default policy: block everything. |
exit_allowed/3 | Check if a given Policy allows us to connect to the given Address and Port. |
default() -> [term()]
Returns a sensible default policy: block everything.
exit_allowed(Policy, Address, Port) -> boolean()
Policy = term()
Address = inet:ip_address()
Port = inet:port_number()
Check if a given Policy allows us to connect to the given Address and Port.