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

Tweak ejabberd_listener to allow ejabberd_xmlrpc work properly

This commit is contained in:
Badlop 2013-05-14 18:50:29 +02:00
parent 80f165a55c
commit c0bf054583

View File

@ -175,7 +175,11 @@ listen_tcp(PortIP, Module, SockOpts, Port, IPS) ->
catch
_:_ -> []
end,
Res = gen_tcp:listen(Port, [binary,
DeliverAs = case Module of
ejabberd_xmlrpc -> list;
_ -> binary
end,
Res = gen_tcp:listen(Port, [DeliverAs,
{packet, 0},
{active, false},
{reuseaddr, true},