25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Handler module shouldn't be used for differentiating listeners when merging configs

This commit is contained in:
Paweł Chmielowski 2015-10-07 16:44:49 +02:00
parent 880114a909
commit 6d25db6600

View File

@ -373,17 +373,15 @@ exit_or_halt(ExitText) ->
get_config_option_key(Name, Val) -> get_config_option_key(Name, Val) ->
if Name == listen -> if Name == listen ->
lists:foldl( lists:foldl(
fun({port, Port}, {_, IP, T, Mod}) -> fun({port, Port}, {_, IP, T}) ->
{Port, IP, T, Mod}; {Port, IP, T};
({ip, IP}, {Port, _, T, Mod}) -> ({ip, IP}, {Port, _, T}) ->
{Port, IP, T, Mod}; {Port, IP, T};
({transport, T}, {Port, IP, _, Mod}) -> ({transport, T}, {Port, IP, _}) ->
{Port, IP, T, Mod}; {Port, IP, T};
({module, Mod}, {Port, IP, T, _}) ->
{Port, IP, T, Mod};
(_, Res) -> (_, Res) ->
Res Res
end, {5222, {0,0,0,0}, tcp, ejabberd_c2s}, Val); end, {5222, {0,0,0,0}, tcp}, Val);
is_tuple(Val) -> is_tuple(Val) ->
element(1, Val); element(1, Val);
true -> true ->