diff options
Diffstat (limited to 'src/web/mod_http_bind.erl')
-rw-r--r-- | src/web/mod_http_bind.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/web/mod_http_bind.erl b/src/web/mod_http_bind.erl index b08e00dca..df2c7eb3f 100644 --- a/src/web/mod_http_bind.erl +++ b/src/web/mod_http_bind.erl @@ -103,9 +103,11 @@ get_human_html_xmlel() -> %%%---------------------------------------------------------------------- %%% BEHAVIOUR CALLBACKS %%%---------------------------------------------------------------------- -start(Host, _Opts) -> +start(Host, Opts) when is_list(Host) -> + start(list_to_binary(Host), Opts); +start(HostB, _Opts) -> setup_database(), - Proc = gen_mod:get_module_proc(Host, ?PROCNAME_MHB), + Proc = gen_mod:get_module_proc(HostB, ?PROCNAME_MHB), ChildSpec = {Proc, {ejabberd_tmp_sup, start_link, |