Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
4249:896e8793e7a4 | 4251:96e9d5f9ab3b |
---|---|
477 function resolver:PTR(rr) | 477 function resolver:PTR(rr) |
478 rr.ptr = self:name(); | 478 rr.ptr = self:name(); |
479 end | 479 end |
480 | 480 |
481 function resolver:TXT(rr) -- - - - - - - - - - - - - - - - - - - - - - TXT | 481 function resolver:TXT(rr) -- - - - - - - - - - - - - - - - - - - - - - TXT |
482 rr.txt = self:sub (rr.rdlength); | 482 rr.txt = self:sub (self:byte()); |
483 end | 483 end |
484 | 484 |
485 | 485 |
486 function resolver:rr() -- - - - - - - - - - - - - - - - - - - - - - - - rr | 486 function resolver:rr() -- - - - - - - - - - - - - - - - - - - - - - - - rr |
487 local rr = {}; | 487 local rr = {}; |