Update plugin_cache.go (#1900)
This commit is contained in:
parent
69019b7a80
commit
2a3e59c4bf
|
@ -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…
Reference in New Issue