mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Initialize Socket in TCP connection when proxy is used
Thanks to Grigory Fedorov for reporting this.
This commit is contained in:
parent
bfc14227ca
commit
51d3c31766
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue