Enable all supported protocols including TLSv1.1 and 1.2
This commit is contained in:
parent
88d88ffb7b
commit
c4b9d42861
|
@ -519,6 +519,7 @@ public class XmppConnection implements Runnable {
|
||||||
SSLSocket sslSocket = (SSLSocket) factory.createSocket(socket,
|
SSLSocket sslSocket = (SSLSocket) factory.createSocket(socket,
|
||||||
socket.getInetAddress().getHostAddress(), socket.getPort(),
|
socket.getInetAddress().getHostAddress(), socket.getPort(),
|
||||||
true);
|
true);
|
||||||
|
sslSocket.setEnabledProtocols(sslSocket.getSupportedProtocols());
|
||||||
|
|
||||||
if (verifier != null
|
if (verifier != null
|
||||||
&& !verifier.verify(account.getServer(),
|
&& !verifier.verify(account.getServer(),
|
||||||
|
|
Loading…
Reference in New Issue