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:
parent
1b7948f50a
commit
3ab90c9d3a
@ -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 ->
|
||||||
|
Loading…
Reference in New Issue
Block a user