We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Same to nginx allow/deny syntax.
allow address | CIDR | all; deny address | CIDR | all;
esockd:open(echo, 5000, [ {access, [{deny, "192.168.1.1"}, {allow, "192.168.1.0/24"}, {deny, all}]} ]).
allow/deny by API:
esockd:deny({echo, 5000}, all). esockd:allow({echo, 5000}, "192.168.0.1/24"). esockd:deny({echo, 5000}, "192.168.1.1").
-spec match(inet:ip_address(), [range_rule()]) -> {matched, allow} | {matched, deny} | nomatch. match(Addr, Rules)