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:
parent
c69884fa3f
commit
aac0e782d0
@ -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,"'">>});
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user