mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix usage of plugins option, which produced default_node_config ignore (#4070)
This commit is contained in:
parent
550a586d2a
commit
66df953da1
@ -3367,9 +3367,10 @@ get_option(Options, Var, Def) ->
|
|||||||
-spec node_options(host(), binary()) -> [{atom(), any()}].
|
-spec node_options(host(), binary()) -> [{atom(), any()}].
|
||||||
node_options(Host, Type) ->
|
node_options(Host, Type) ->
|
||||||
DefaultOpts = node_plugin_options(Host, Type),
|
DefaultOpts = node_plugin_options(Host, Type),
|
||||||
case config(Host, plugins) of
|
case lists:member(Type, config(Host, plugins)) of
|
||||||
[Type|_] -> config(Host, default_node_config, DefaultOpts);
|
true ->
|
||||||
_ -> DefaultOpts
|
config(Host, default_node_config, DefaultOpts);
|
||||||
|
false -> DefaultOpts
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec node_plugin_options(host(), binary()) -> [{atom(), any()}].
|
-spec node_plugin_options(host(), binary()) -> [{atom(), any()}].
|
||||||
|
Loading…
Reference in New Issue
Block a user