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
1 changed files with 1 additions and 1 deletions

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(