We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85641a commit 0788aecCopy full SHA for 0788aec
src/main/java/cn/jpush/api/common/connection/NativeHttpClient.java
@@ -261,7 +261,7 @@ protected void initSSL() {
261
TrustManager[] tmCerts = new javax.net.ssl.TrustManager[1];
262
tmCerts[0] = new SimpleTrustManager();
263
try {
264
- SSLContext sslContext = SSLContext.getInstance("TLSv1.1");
+ SSLContext sslContext = SSLContext.getInstance("TLS");
265
sslContext.init(null, tmCerts, null);
266
HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
267
0 commit comments