1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02: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,"'">>});
_ ->