mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-28 17:38:54 +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) ->
|
handle_stream_start(StreamStart, #{lserver := LServer} = State) ->
|
||||||
case ejabberd_router:is_my_host(LServer) of
|
case ejabberd_router:is_my_host(LServer) of
|
||||||
false ->
|
false ->
|
||||||
send(State, xmpp:serr_host_unknown());
|
send(State#{lserver => ?MYNAME}, xmpp:serr_host_unknown());
|
||||||
true ->
|
true ->
|
||||||
change_shaper(State),
|
change_shaper(State),
|
||||||
ejabberd_hooks:run_fold(
|
ejabberd_hooks:run_fold(
|
||||||
|
Loading…
Reference in New Issue
Block a user