mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Allow using shaper defined by name like in in s2s_shaper: fast
This commit is contained in:
parent
0a09f27373
commit
1fb1e8721b
@ -515,10 +515,12 @@ parse_ip_netmask(S) ->
|
|||||||
_ -> error
|
_ -> error
|
||||||
end.
|
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) ->
|
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]};
|
{Type, [all]};
|
||||||
transform_access_rules_config2({Type, ACL}) when is_atom(ACL) ->
|
transform_access_rules_config2({Type, ACL}) when is_atom(ACL) ->
|
||||||
{Type, [{acl, ACL}]};
|
{Type, [{acl, ACL}]};
|
||||||
|
Loading…
Reference in New Issue
Block a user