25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +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 ->
throw({error, <<"Invalid value of '",ArgName/binary,"'">>});
Name2 ->
case lists:member(Name2, ejabberd_config:get_myhosts()) of
case lists:member(Name2, ejabberd_option:hosts()) of
false ->
throw({error, <<"Unknown host passed in '",ArgName/binary,"'">>});
_ ->