25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

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

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(