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 24b8ab4 commit faf64a6Copy full SHA for faf64a6
common/src/main/java/com/pedro/common/socket/java/TcpStreamSocketJava.kt
@@ -22,9 +22,7 @@ class TcpStreamSocketJava(
22
try {
23
val context = SSLContext.getInstance("TLS")
24
context.init(null, certificates?.let { arrayOf(it) }, SecureRandom())
25
- val socket = context.socketFactory.createSocket()
26
- if (socket is SSLSocket) socket.enabledProtocols = arrayOf("TLSv1.1", "TLSv1.2")
27
- socket
+ context.socketFactory.createSocket()
28
} catch (e: GeneralSecurityException) {
29
throw IOException("Create SSL socket failed: ${e.message}")
30
}
0 commit comments