mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
pep_mapping not working due to Node type mismatch (EJAB-1135)
SVN Revision: 2815
This commit is contained in:
parent
15abddb7a8
commit
675c24f5eb
@ -3560,7 +3560,7 @@ select_type(ServerHost, Host, Node, Type)->
|
|||||||
SelectedType = case Host of
|
SelectedType = case Host of
|
||||||
{_User, _Server, _Resource} ->
|
{_User, _Server, _Resource} ->
|
||||||
case catch ets:lookup(gen_mod:get_module_proc(ServerHost, config), pep_mapping) of
|
case catch ets:lookup(gen_mod:get_module_proc(ServerHost, config), pep_mapping) of
|
||||||
[{pep_mapping, PM}] -> proplists:get_value(Node, PM, ?PEPNODE);
|
[{pep_mapping, PM}] -> proplists:get_value(node_to_string(Node), PM, ?PEPNODE);
|
||||||
_ -> ?PEPNODE
|
_ -> ?PEPNODE
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
|
@ -3393,7 +3393,7 @@ select_type(ServerHost, Host, Node, Type)->
|
|||||||
SelectedType = case Host of
|
SelectedType = case Host of
|
||||||
{_User, _Server, _Resource} ->
|
{_User, _Server, _Resource} ->
|
||||||
case catch ets:lookup(gen_mod:get_module_proc(ServerHost, config), pep_mapping) of
|
case catch ets:lookup(gen_mod:get_module_proc(ServerHost, config), pep_mapping) of
|
||||||
[{pep_mapping, PM}] -> proplists:get_value(Node, PM, ?PEPNODE);
|
[{pep_mapping, PM}] -> proplists:get_value(node_to_string(Node), PM, ?PEPNODE);
|
||||||
_ -> ?PEPNODE
|
_ -> ?PEPNODE
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user