24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02: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 90d9ed1ee4
commit 739412119e

View File

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