diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-05-28 17:31:46 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-05-28 17:31:46 +0200 |
commit | a577ec7c318d734de3ed8c2dc5ab1dd4b773b78a (patch) | |
tree | f1f6eacbbaae473757a051788250884a825a2cc8 /src/main/java/eu/siacs/conversations/xmpp | |
parent | 5373956e19f318551841d59885f4c2567ffd46a3 (diff) |
let dns library take care of no-srv style hosts as well
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xmpp')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index d52ebee5..f6e0bfdc 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -200,9 +200,6 @@ public class XmppConnection implements Runnable { if (socketError) { throw new UnknownHostException(); } - } else if (result.containsKey("error") - && "nosrv".equals(result.getString("error", null))) { - socket = new Socket(account.getServer().getDomainpart(), 5222); } else { throw new IOException("unhandled exception in DNS resolver"); } |