|
@@ -166,7 +166,7 @@ public class HttpUtils {
|
|
|
if (!(socket instanceof SSLSocket)) {
|
|
if (!(socket instanceof SSLSocket)) {
|
|
|
throw new RuntimeException("An instance of SSLSocket is expected");
|
|
throw new RuntimeException("An instance of SSLSocket is expected");
|
|
|
}
|
|
}
|
|
|
- ((SSLSocket) socket).setEnabledProtocols(new String[]{"TLSv1"});
|
|
|
|
|
|
|
+ ((SSLSocket) socket).setEnabledProtocols(new String[]{"TLSv1.2"});
|
|
|
return socket;
|
|
return socket;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|