Software / code / prosody
Changeset
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 |
| parents | 2026:97b17187b29d |
| children | 2034:38d4694828e6 |
| files | net/dns.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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