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:
parent
ce3317da7a
commit
489385d565
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user