# HG changeset patch # User Kim Alvefur # Date 1302821650 -7200 # Node ID 96e9d5f9ab3b5cfad2ddf0a752e2af2cce2be330 # Parent 896e8793e7a47513829bd93ed14288f6b42bcff9 net.dns: Fix TXT records diff -r 896e8793e7a4 -r 96e9d5f9ab3b net/dns.lua --- 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