Skip to content

Commit

Permalink
加入TLSv1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
egzosn committed Nov 12, 2021
1 parent 7acb047 commit 556c3e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public SSLConnectionSocketFactory createSSL(HttpConfigStorage configStorage) {

//指定TLS版本
sslsf = new SSLConnectionSocketFactory(
sslcontext, new String[]{"TLSv1"}, null,
sslcontext, new String[]{"TLSv1","TLSv1.2"}, null,
new DefaultHostnameVerifier());

return sslsf;
Expand Down

0 comments on commit 556c3e7

Please sign in to comment.