25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Don't "forget" listener options

If a listener is started or stopped via ejabberd_listener:add_listener/3
or ejabberd_listener:delete_listener/3, the configuration for all
listener modules is updated using the Module:transform_listen_option/2
function for each listener module that exports such a function.
However, for listener modules that don't provide that function (such as
ejabberd_stun), all but one option was dropped.  This is now fixed.

The issue could be triggered e.g. by enabling mod_proxy65 in the modules
section.
This commit is contained in:
Holger Weiss 2014-06-04 19:51:45 +02:00
parent c546ce2439
commit e0e74a9d5e

View File

@ -595,7 +595,7 @@ transform_option({{Port, IP, Transport}, Mod, Opts}) ->
try try
Mod:transform_listen_option(Opt, Acc) Mod:transform_listen_option(Opt, Acc)
catch error:undef -> catch error:undef ->
Acc [Opt|Acc]
end end
end, [], Opts1), end, [], Opts1),
TransportOpt = if Transport == tcp -> []; TransportOpt = if Transport == tcp -> [];