mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Use XMPP service name when creating the TLS socket
instead of the hostname. This should make SNI also to use the XMPP service name instead of the hostname. Fixes SMACK-813.
This commit is contained in:
parent
14d20367b2
commit
b5bc7d8d9f
1 changed files with 1 additions and 1 deletions
|
@ -795,7 +795,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
Socket plain = socket;
|
||||
// Secure the plain connection
|
||||
socket = context.getSocketFactory().createSocket(plain,
|
||||
host, plain.getPort(), true);
|
||||
config.getXMPPServiceDomain().toString(), plain.getPort(), true);
|
||||
|
||||
final SSLSocket sslSocket = (SSLSocket) socket;
|
||||
// Immediately set the enabled SSL protocols and ciphers. See SMACK-712 why this is
|
||||
|
|
Loading…
Reference in a new issue