Always accept messages from local (sub)domains

This commit is contained in:
Evgeniy Khramtsov 2017-09-07 13:53:42 +03:00
parent 978c92f5e1
commit 803c31f760
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ check_message(#message{from = From, to = To} = Msg) ->
gen_mod:get_module_opt(LServer, ?MODULE, allow_local_users, true),
case (Msg#message.body == [] andalso
Msg#message.subject == [])
orelse (AllowLocalUsers andalso
orelse ((AllowLocalUsers orelse From#jid.luser == <<"">>) andalso
ejabberd_router:is_my_route(From#jid.lserver)) of
false ->
{Sub, _} = ejabberd_hooks:run_fold(