mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Tweak ejabberd_listener to allow ejabberd_xmlrpc work properly
This commit is contained in:
parent
80f165a55c
commit
c0bf054583
@ -175,7 +175,11 @@ listen_tcp(PortIP, Module, SockOpts, Port, IPS) ->
|
|||||||
catch
|
catch
|
||||||
_:_ -> []
|
_:_ -> []
|
||||||
end,
|
end,
|
||||||
Res = gen_tcp:listen(Port, [binary,
|
DeliverAs = case Module of
|
||||||
|
ejabberd_xmlrpc -> list;
|
||||||
|
_ -> binary
|
||||||
|
end,
|
||||||
|
Res = gen_tcp:listen(Port, [DeliverAs,
|
||||||
{packet, 0},
|
{packet, 0},
|
||||||
{active, false},
|
{active, false},
|
||||||
{reuseaddr, true},
|
{reuseaddr, true},
|
||||||
|
Loading…
Reference in New Issue
Block a user