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
commit1dfc82ef0de6acc84aad3568607e6a00651ad1e4 (patch)
treea718055c5173a59df8f11689f0d95ef6801ee8bd /net
parent7e4d78bef216a7df7ecc39548cc6d6ea1cdacba4 (diff)
downloadprosody-1dfc82ef0de6acc84aad3568607e6a00651ad1e4.tar.gz
prosody-1dfc82ef0de6acc84aad3568607e6a00651ad1e4.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