mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Update plugin_cache.go (#1900)
This commit is contained in:
parent
69019b7a80
commit
2a3e59c4bf
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
|||
synth.Question = msg.Question
|
||||
|
||||
if time.Now().After(cached.expiration) {
|
||||
updateTTL(synth, time.Now().Add(30 * time.Second))
|
||||
pluginsState.sessionData["stale"] = synth
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue