Skip to content

Commit 2a3e59c

Browse files
author
livingentity
authored
Update plugin_cache.go (#1900)
1 parent 69019b7 commit 2a3e59c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dnscrypt-proxy/plugin_cache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
8686
synth.Question = msg.Question
8787

8888
if time.Now().After(cached.expiration) {
89+
updateTTL(synth, time.Now().Add(30 * time.Second))
8990
pluginsState.sessionData["stale"] = synth
9091
return nil
9192
}

0 commit comments

Comments
 (0)