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:
parent
c98ddeb59f
commit
1922bf21f0
@ -246,7 +246,7 @@ init([{SockMod, Socket}, Opts, FSMLimitOpts]) ->
|
||||
false ->
|
||||
Socket1 =
|
||||
if
|
||||
TLSEnabled ->
|
||||
TLSEnabled andalso SockMod /= ejabberd_frontend_socket ->
|
||||
SockMod:starttls(Socket, TLSOpts);
|
||||
true ->
|
||||
Socket
|
||||
|
Loading…
Reference in New Issue
Block a user