aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/DNSHelper.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}