]> granicus.if.org Git - ejabberd/commitdiff
We need to set hosts in options to be able to retrieve 'MYHOSTS'
authorMickael Remond <mremond@process-one.net>
Wed, 6 Apr 2016 10:59:27 +0000 (12:59 +0200)
committerMickael Remond <mremond@process-one.net>
Wed, 6 Apr 2016 10:59:27 +0000 (12:59 +0200)
src/ejabberd_config.erl

index 6f7368b7c8387cda0f8fbb4c495db848e0e46c80..13b636c7b04d1eb83efa51298d57fac75dd6cbe6 100644 (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