25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Don't ask for client certificate when using tls (EJAB-1267)

This commit is contained in:
Badlop 2010-06-25 17:15:28 +02:00
parent 1b7948f50a
commit 3ab90c9d3a

View File

@ -87,9 +87,10 @@ start_link(SockData, Opts) ->
init({SockMod, Socket}, Opts) -> init({SockMod, Socket}, Opts) ->
TLSEnabled = lists:member(tls, Opts), TLSEnabled = lists:member(tls, Opts),
TLSOpts = lists:filter(fun({certfile, _}) -> true; TLSOpts1 = lists:filter(fun({certfile, _}) -> true;
(_) -> false (_) -> false
end, Opts), end, Opts),
TLSOpts = [verify_none | TLSOpts1],
{SockMod1, Socket1} = {SockMod1, Socket1} =
if if
TLSEnabled -> TLSEnabled ->