Software /
code /
prosody
Diff
net/dns.lua @ 2027:4cd673721e72
net.dns: Don't expire records with TTL of 0 instantly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 21 Oct 2009 00:01:50 +0100 |
parent | 1982:df88f048c34d |
child | 2067:0ed6369605bf |
line wrap: on
line diff
--- a/net/dns.lua Wed Oct 21 01:02:26 2009 +0500 +++ b/net/dns.lua Wed Oct 21 00:01:50 2009 +0100 @@ -443,7 +443,7 @@ rr.ttl = 0x10000*self:word () + self:word () rr.rdlength = self:word () - if rr.ttl <= 0 then rr.tod = self.time; + if rr.ttl <= 0 then rr.tod = self.time + 30; else rr.tod = self.time + rr.ttl end local remember = self.offset