mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
StaleResponseTtl -> StaleResponseTTL
This commit is contained in:
parent
8da1b698ad
commit
efcd392279
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
const StaleResponseTtl = 30 * time.Second
|
||||
const StaleResponseTTL = 30 * time.Second
|
||||
|
||||
type CachedResponse struct {
|
||||
expiration time.Time
|
||||
|
@ -92,7 +92,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
|||
synth.Question = msg.Question
|
||||
|
||||
if time.Now().After(expiration) {
|
||||
expiration2 := time.Now().Add(StaleResponseTtl)
|
||||
expiration2 := time.Now().Add(StaleResponseTTL)
|
||||
updateTTL(synth, expiration2)
|
||||
pluginsState.sessionData["stale"] = synth
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue