Commit 8a8071e0 authored by Grigory Fedorov's avatar Grigory Fedorov

Merge pull request #457 from alexte/revert-451-develop

Revert "Correctly use SRV specified hostname for cert validation (#204)"
parents 9eea63dd 72eff5b2
......@@ -848,7 +848,7 @@ public class XMPPConnection extends Connection {
throw new IllegalStateException();
context.init(kms, new TrustManager[]{new XMPPTrustManager(
KeyStoreManager.getOrCreateKeyStore(config),
getHost(), config.getCertificateListener(),
getServiceName(), config.getCertificateListener(),
chainCheck, domainCheck, allowSelfSigned)}, SECURE_RANDOM);
}
Socket plain = socket;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment