aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2011-04-15 00:54:10 +0200
committerKim Alvefur <zash@zash.se>2011-04-15 00:54:10 +0200
commit66a908d35fcb8564d592e8e91133ef337e832284 (patch)
treea718055c5173a59df8f11689f0d95ef6801ee8bd /net
parent0257b8e30ca007b2387bbd76acaff293d66e055a (diff)
downloadprosody-66a908d35fcb8564d592e8e91133ef337e832284.tar.gz
prosody-66a908d35fcb8564d592e8e91133ef337e832284.zip
net.dns: Fix TXT records
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index c905f56c..08cb0f7c 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -479,7 +479,7 @@ function resolver:PTR(rr)
end
function resolver:TXT(rr) -- - - - - - - - - - - - - - - - - - - - - - TXT
- rr.txt = self:sub (rr.rdlength);
+ rr.txt = self:sub (self:byte());
end