mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
pep_mapping not working due to Node type mismatch (EJAB-1135)
SVN Revision: 2816
This commit is contained in:
parent
848e72bcab
commit
7434234c27
@ -3634,7 +3634,7 @@ select_type(ServerHost, Host, Node, Type) ->
|
||||
SelectedType = case Host of
|
||||
{_User, _Server, _Resource} ->
|
||||
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
|
||||
end;
|
||||
_ ->
|
||||
|
@ -3469,7 +3469,7 @@ select_type(ServerHost, Host, Node, Type) ->
|
||||
SelectedType = case Host of
|
||||
{_User, _Server, _Resource} ->
|
||||
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
|
||||
end;
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user