aboutsummaryrefslogtreecommitdiff
path: root/src/acl.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-06-16 11:04:01 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-06-16 11:04:01 +0200
commit1fb1e8721b4c3fcd01c9fcae64eaf78e220ee84f (patch)
treeac622d5dd29c968bf847d2a0d0948d4fb3b28295 /src/acl.erl
parentTypo in option name (diff)
Allow using shaper defined by name like in in s2s_shaper: fast
Diffstat (limited to 'src/acl.erl')
-rw-r--r--src/acl.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/acl.erl b/src/acl.erl
index 2840c5880..693219ebe 100644
--- a/src/acl.erl
+++ b/src/acl.erl
@@ -515,10 +515,12 @@ parse_ip_netmask(S) ->
_ -> error
end.
+transform_access_rules_config(Config) when is_list(Config) ->
+ lists:map(fun transform_access_rules_config2/1, lists:flatten(Config));
transform_access_rules_config(Config) ->
- lists:map(fun transform_access_rules_config2/1, lists:flatten(Config)).
+ transform_access_rules_config([Config]).
-transform_access_rules_config2(Type) when is_integer(Type); Type == allow; Type == deny ->
+transform_access_rules_config2(Type) when is_integer(Type); is_atom(Type) ->
{Type, [all]};
transform_access_rules_config2({Type, ACL}) when is_atom(ACL) ->
{Type, [{acl, ACL}]};