Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 1.27 KB

onion_exit_policy.md

File metadata and controls

46 lines (25 loc) · 1.27 KB

Module onion_exit_policy

Exit Policy API.

Authors: Alexander Færøy (ahf@0x90.dk).

Function Index

default/0Returns a sensible default policy: block everything.
exit_allowed/3Check if a given Policy allows us to connect to the given Address and Port.

Function Details

default/0


default() -> [term()]

Returns a sensible default policy: block everything.

exit_allowed/3


exit_allowed(Policy, Address, Port) -> boolean()

Check if a given Policy allows us to connect to the given Address and Port.