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

Don't use ejabberd_config:get_myhosts()

This commit is contained in:
Paweł Chmielowski 2024-02-28 12:24:50 +01:00
parent c69884fa3f
commit aac0e782d0

View File

@ -1574,7 +1574,7 @@ validate_host(Name, ArgName) ->
error -> error ->
throw({error, <<"Invalid value of '",ArgName/binary,"'">>}); throw({error, <<"Invalid value of '",ArgName/binary,"'">>});
Name2 -> Name2 ->
case lists:member(Name2, ejabberd_config:get_myhosts()) of case lists:member(Name2, ejabberd_option:hosts()) of
false -> false ->
throw({error, <<"Unknown host passed in '",ArgName/binary,"'">>}); throw({error, <<"Unknown host passed in '",ArgName/binary,"'">>});
_ -> _ ->