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

Make sure all hooks are called with proper host in ejabberd_c2s

This commit is contained in:
Evgeniy Khramtsov 2017-02-28 16:47:31 +03:00
parent ce3317da7a
commit 489385d565

View File

@ -416,7 +416,7 @@ bind(R, #{user := U, server := S, access := Access, lang := Lang,
handle_stream_start(StreamStart, #{lserver := LServer} = State) ->
case ejabberd_router:is_my_host(LServer) of
false ->
send(State, xmpp:serr_host_unknown());
send(State#{lserver => ?MYNAME}, xmpp:serr_host_unknown());
true ->
change_shaper(State),
ejabberd_hooks:run_fold(