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

Do not try to start TLS twice when front-end socket is used

This commit is contained in:
Evgeniy Khramtsov 2011-05-05 18:59:33 +10:00
parent c98ddeb59f
commit 1922bf21f0

View File

@ -246,7 +246,7 @@ init([{SockMod, Socket}, Opts, FSMLimitOpts]) ->
false -> false ->
Socket1 = Socket1 =
if if
TLSEnabled -> TLSEnabled andalso SockMod /= ejabberd_frontend_socket ->
SockMod:starttls(Socket, TLSOpts); SockMod:starttls(Socket, TLSOpts);
true -> true ->
Socket Socket