mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-07 07:07:37 +03:00
Add configuration cache size and other parameters
This commit is contained in:
parent
b60c728067
commit
99c5273e3a
4 changed files with 45 additions and 6 deletions
|
@ -31,6 +31,10 @@ type PluginsState struct {
|
|||
responsePlugins *[]Plugin
|
||||
synthResponse *dns.Msg
|
||||
dnssec bool
|
||||
cacheSize int
|
||||
cacheNegTTL uint32
|
||||
cacheMinTTL uint32
|
||||
cacheMaxTTL uint32
|
||||
}
|
||||
|
||||
type Plugin interface {
|
||||
|
@ -60,6 +64,10 @@ func NewPluginsState(proxy *Proxy, proto string) PluginsState {
|
|||
queryPlugins: queryPlugins,
|
||||
responsePlugins: responsePlugins,
|
||||
proto: proto,
|
||||
cacheSize: proxy.cacheSize,
|
||||
cacheNegTTL: proxy.cacheNegTTL,
|
||||
cacheMinTTL: proxy.cacheMinTTL,
|
||||
cacheMaxTTL: proxy.cacheMaxTTL,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue