aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index fe327ed2..a1bdb7d7 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -443,7 +443,7 @@ function resolver:rr () -- - - - - - - - - - - - - - - - - - - - - - - - rr
rr.ttl = 0x10000*self:word () + self:word ()
rr.rdlength = self:word ()
- if rr.ttl == 0 then -- pass
+ if rr.ttl <= 0 then rr.tod = self.time;
else rr.tod = self.time + rr.ttl end
local remember = self.offset