mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: change non-expired ttl to 50years to avoid int overflow on 32bit os
This commit is contained in:
1 parent
c049b75b64
commit
6cdfbc3552
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -218,7 +218,7 @@ func (c *Client) AddRecord(record string) error {
|
||||
binary.Write(&buf, binary.BigEndian, uint16(len(b)))
|
||||
buf.Write(b)
|
||||
|
||||
c.cache.Put(getKey(m.Question), buf.Bytes(), HundredYears)
|
||||
c.cache.Put(getKey(m.Question), buf.Bytes(), LongTTL)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user