plugin_cache: update the response TTL, not the cached data

Fixes #1895
This commit is contained in:
Frank Denis 2021-09-23 18:37:40 +02:00
parent b8c5790716
commit 75e917ae49
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
return nil
}
updateTTL(&cached.msg, cached.expiration)
updateTTL(synth, cached.expiration)
pluginsState.synthResponse = synth
pluginsState.action = PluginsActionSynth