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