mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Don't ask for client certificate when using tls (EJAB-1267)
This commit is contained in:
parent
1b7948f50a
commit
3ab90c9d3a
@ -87,9 +87,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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user