Software /
code /
prosody
Changeset
1982:df88f048c34d
net.dns: Don't cache some records indefinitely
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 17 Oct 2009 17:56:51 +0100 |
parents | 1981:ffbc57a4dea8 |
children | 1983:1f49d778bd98 |
files | net/dns.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/dns.lua Sat Oct 17 16:25:28 2009 +0100 +++ b/net/dns.lua Sat Oct 17 17:56:51 2009 +0100 @@ -443,7 +443,7 @@ 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