Skip to content

Commit

Permalink
Use XMPP service name when creating the TLS socket
Browse files Browse the repository at this point in the history
instead of the hostname. This should make SNI also to use the XMPP
service name instead of the hostname.

Fixes SMACK-813.
  • Loading branch information
Flowdalic committed Apr 9, 2018
1 parent 14d2036 commit b5bc7d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ else if (keyStoreType != null) {
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
Expand Down

0 comments on commit b5bc7d8

Please sign in to comment.