mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Report failed DNS SRV lookup in ConnectionException
instead of just logging a warning if the XMPP domain has no DNS SRV lookups, create the failedAddresses list now within DNSUtil and add the information that the SRV lookup failed.
This commit is contained in:
parent
30ec2bd072
commit
4b10f36e9e
3 changed files with 25 additions and 10 deletions
|
@ -517,9 +517,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
}
|
||||
|
||||
private void connectUsingConfiguration() throws IOException, ConnectionException {
|
||||
populateHostAddresses();
|
||||
|
||||
List<HostAddress> failedAddresses = new LinkedList<HostAddress>();
|
||||
List<HostAddress> failedAddresses = populateHostAddresses();
|
||||
SocketFactory socketFactory = config.getSocketFactory();
|
||||
if (socketFactory == null) {
|
||||
socketFactory = SocketFactory.getDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue