1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Initialize Socket in TCP connection when proxy is used

Thanks to Grigory Fedorov for reporting this.
This commit is contained in:
Florian Schmaus 2017-01-08 22:58:23 +01:00
parent bfc14227ca
commit 51d3c31766

View file

@ -594,6 +594,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
}
failedAddresses.add(hostAddress);
} else {
socket = socketFactory.createSocket();
StringUtils.requireNotNullOrEmpty(host, "Host of HostAddress " + hostAddress + " must not be null when using a Proxy");
final String hostAndPort = host + " at port " + port;
LOGGER.finer("Trying to establish TCP connection via Proxy to " + hostAndPort);