mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Fix ACLs syntax change (thanks to jokker23)(issue #140)
This commit is contained in:
parent
2b527f5e9a
commit
d5f90965d7
@ -237,6 +237,8 @@ normalize_spec(Spec) ->
|
|||||||
{server_regexp, SR} -> {server_regexp, b(SR)};
|
{server_regexp, SR} -> {server_regexp, b(SR)};
|
||||||
{server_glob, S} -> {server_glob, b(S)};
|
{server_glob, S} -> {server_glob, b(S)};
|
||||||
{resource_glob, R} -> {resource_glob, b(R)};
|
{resource_glob, R} -> {resource_glob, b(R)};
|
||||||
|
{ip, {Net, Mask}} ->
|
||||||
|
{ip, {Net, Mask}};
|
||||||
{ip, S} ->
|
{ip, S} ->
|
||||||
case parse_ip_netmask(b(S)) of
|
case parse_ip_netmask(b(S)) of
|
||||||
{ok, Net, Mask} ->
|
{ok, Net, Mask} ->
|
||||||
|
@ -1138,7 +1138,7 @@ string_to_spec2(ACLName, Val) ->
|
|||||||
jlib:string_to_jid(Val),
|
jlib:string_to_jid(Val),
|
||||||
case U of
|
case U of
|
||||||
<<"">> -> {ACLName, S};
|
<<"">> -> {ACLName, S};
|
||||||
_ -> {ACLName, U, S}
|
_ -> {ACLName, {U, S}}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
acl_parse_delete(ACLs, Query) ->
|
acl_parse_delete(ACLs, Query) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user