|
@@ -41,7 +41,7 @@ class Android10Platform extends AndroidPlatform {
|
|
|
|
|
|
// Enable ALPN.
|
|
|
String[] protocolsArray = Platform.alpnProtocolNames(protocols).toArray(new String[0]);
|
|
|
- sslParameters.setApplicationProtocols(protocolsArray);
|
|
|
+// sslParameters.setApplicationProtocols(protocolsArray);
|
|
|
|
|
|
sslSocket.setSSLParameters(sslParameters);
|
|
|
}
|
|
@@ -54,8 +54,8 @@ class Android10Platform extends AndroidPlatform {
|
|
|
|
|
|
@IgnoreJRERequirement
|
|
|
@Override public @Nullable String getSelectedProtocol(SSLSocket socket) {
|
|
|
- String alpnResult = socket.getApplicationProtocol();
|
|
|
-
|
|
|
+// String alpnResult = socket.getApplicationProtocol();
|
|
|
+ String alpnResult=null;
|
|
|
if (alpnResult == null || alpnResult.isEmpty()) {
|
|
|
return null;
|
|
|
}
|