24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

We need to set hosts in options to be able to retrieve 'MYHOSTS'

This commit is contained in:
Mickael Remond 2016-04-06 12:59:27 +02:00
parent 232915184c
commit 67b9b82261

View File

@ -93,7 +93,7 @@ hosts_to_start(State) ->
-spec(start/2 :: (Hosts :: [binary()], Opts :: [acl:acl() | local_config()]) -> ok).
start(Hosts, Opts) ->
mnesia_init(),
set_opts(#state{hosts = Hosts, opts = Opts}).
set_opts(set_hosts_in_options(Hosts, #state{opts = Opts})).
mnesia_init() ->
case catch mnesia:table_info(local_config, storage_type) of