Send ping from server, not bare user JID (#3658)
This commit is contained in:
parent
ebf03a3745
commit
b0da69f050
|
@ -154,7 +154,7 @@ handle_info({iq_reply, timeout, JID}, State) ->
|
||||||
{noreply, State#state{timers = Timers}};
|
{noreply, State#state{timers = Timers}};
|
||||||
handle_info({timeout, _TRef, {ping, JID}}, State) ->
|
handle_info({timeout, _TRef, {ping, JID}}, State) ->
|
||||||
Host = State#state.host,
|
Host = State#state.host,
|
||||||
From = jid:remove_resource(JID),
|
From = jid:make(Host),
|
||||||
IQ = #iq{from = From, to = JID, type = get, sub_els = [#ping{}]},
|
IQ = #iq{from = From, to = JID, type = get, sub_els = [#ping{}]},
|
||||||
ejabberd_router:route_iq(IQ, JID,
|
ejabberd_router:route_iq(IQ, JID,
|
||||||
gen_mod:get_module_proc(Host, ?MODULE),
|
gen_mod:get_module_proc(Host, ?MODULE),
|
||||||
|
|
Loading…
Reference in New Issue