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

Make ejabberd_xmlrpc working as a listening module again

Fixes #2915
This commit is contained in:
Evgeny Khramtsov 2019-06-24 17:13:34 +03:00
parent d0b65a3c95
commit 1d239ec6fb

View File

@ -188,11 +188,13 @@
%% Listener interface
%% -----------------------------
start(gen_tcp = _SockMod, Socket, Opts) ->
ejabberd_http:start(gen_tcp, Socket, [{xmlrpc, true}|Opts]).
start(SockMod, Socket, Opts) ->
Opts1 = [{request_handlers, [{[], ?MODULE}]}|Opts],
ejabberd_http:start(SockMod, Socket, Opts1).
start_link(gen_tcp = _SockMod, Socket, Opts) ->
ejabberd_http:start_link(gen_tcp, Socket, [{xmlrpc, true}|Opts]).
start_link(SockMod, Socket, Opts) ->
Opts1 = [{request_handlers, [{[], ?MODULE}]}|Opts],
ejabberd_http:start_link(SockMod, Socket, Opts1).
accept(Pid) ->
ejabberd_http:accept(Pid).