aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/DNSHelper.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-26 00:17:26 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-26 00:17:26 +0100
commit0c37abf1e9d9d285f601a9f8aa128bf4382685fd (patch)
treeed385042f6690b92a45b45bbb4ab19c9b6b45830 /src/eu/siacs/conversations/utils/DNSHelper.java
parent8b85b603d300d94d7db68072dbaf75b74f65af14 (diff)
made work around not being a work around any more
Diffstat (limited to 'src/eu/siacs/conversations/utils/DNSHelper.java')
-rw-r--r--src/eu/siacs/conversations/utils/DNSHelper.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/utils/DNSHelper.java b/src/eu/siacs/conversations/utils/DNSHelper.java
index d28a727c..8953e3e5 100644
--- a/src/eu/siacs/conversations/utils/DNSHelper.java
+++ b/src/eu/siacs/conversations/utils/DNSHelper.java
@@ -96,9 +96,8 @@ public class DNSHelper {
++i;
}
builder.replace(0, 1, "");
-
- //TODO: workaround. speak proper dns later
- if (!builder.toString().contains(".")) {
+ byte type = receiveData[i+1];
+ if (type!=-64) {
namePort.putString("error", "nosrv");
return namePort;
}