Changeset

4251:96e9d5f9ab3b

net.dns: Fix TXT records
author Kim Alvefur <zash@zash.se>
date Fri, 15 Apr 2011 00:54:10 +0200
parents 4249:896e8793e7a4
children 4252:210639fb8fbe
files net/dns.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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