Diff

net/dns.lua @ 4251:96e9d5f9ab3b

net.dns: Fix TXT records
author Kim Alvefur <zash@zash.se>
date Fri, 15 Apr 2011 00:54:10 +0200
parent 4125:5cf13260edec
child 4267:29d7eb6ff62c
line wrap: on
line diff
--- a/net/dns.lua	Thu Apr 14 22:40:50 2011 +0100
+++ b/net/dns.lua	Fri Apr 15 00:54:10 2011 +0200
@@ -479,7 +479,7 @@
 end
 
 function resolver:TXT(rr)    -- - - - - - - - - - - - - - - - - - - - - -  TXT
-	rr.txt = self:sub (rr.rdlength);
+	rr.txt = self:sub (self:byte());
 end