dns: change non-expired ttl to 50years to avoid int overflow on 32bit os

This commit is contained in:
nadoo committed 2018-08-02 13:28:01 +08:00
1 parent c049b75b64
commit 6cdfbc3552
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -5,8 +5,8 @@ import (
"time"
)
// HundredYears is one hundred years duration in seconds, used for none-expired items
const HundredYears = 100 * 365 * 24 * 3600
// LongTTL is 50 years duration in seconds, used for none-expired items
const LongTTL = 50 * 365 * 24 * 3600
type item struct {
value []byte