Skip to content

Commit 75e917a

Browse files
committed
plugin_cache: update the response TTL, not the cached data
Fixes #1895
1 parent b8c5790 commit 75e917a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/plugin_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (plugin *PluginCache) Eval(pluginsState *PluginsState, msg *dns.Msg) error
9090
return nil
9191
}
9292

93-
updateTTL(&cached.msg, cached.expiration)
93+
updateTTL(synth, cached.expiration)
9494

9595
pluginsState.synthResponse = synth
9696
pluginsState.action = PluginsActionSynth

0 commit comments

Comments
 (0)