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
90d9ed1ee4
commit
739412119e
@ -91,9 +91,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