aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-21 00:01:50 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-21 00:01:50 +0100
commit1d89d7c92ca542ea063033148d25c25409f31a80 (patch)
treec6cc435d82db5f44a6b05461ec2bc78211a0eae9 /net
parent22cd9aadf669884ae58feaf1974c5b03481c17dd (diff)
downloadprosody-1d89d7c92ca542ea063033148d25c25409f31a80.tar.gz
prosody-1d89d7c92ca542ea063033148d25c25409f31a80.zip
net.dns: Don't expire records with TTL of 0 instantly
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index a1bdb7d7..74c17a56 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 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