From abd251c5c167fd33c047af8af39e8b8e2d61fd85 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Thu, 7 Nov 2019 14:02:34 +0300 Subject: [PATCH] * whois,rdns: use 1 hour cache TTL --- home/rdns.go | 2 +- home/whois.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/rdns.go b/home/rdns.go index abdea47f..6f99fa3f 100644 --- a/home/rdns.go +++ b/home/rdns.go @@ -72,7 +72,7 @@ func (r *RDNS) Begin(ip string) { // TTL expired } expire = make([]byte, 8) - const ttl = 12 * 60 * 60 + const ttl = 1 * 60 * 60 binary.BigEndian.PutUint64(expire, now+ttl) _ = r.ipAddrs.Set([]byte(ip), expire) diff --git a/home/whois.go b/home/whois.go index f7c90a2f..0db44dc6 100644 --- a/home/whois.go +++ b/home/whois.go @@ -205,7 +205,7 @@ func (w *Whois) Begin(ip string) { // TTL expired } expire = make([]byte, 8) - const ttl = 12 * 60 * 60 + const ttl = 1 * 60 * 60 binary.BigEndian.PutUint64(expire, now+ttl) _ = w.ipAddrs.Set([]byte(ip), expire)