Added DOT_CACHING environment variable

This commit is contained in:
Quentin McGaw (desktop)
2020-02-08 21:28:03 +00:00
parent 247dc01f8a
commit 0264f8726a
7 changed files with 27 additions and 1 deletions

View File

@@ -100,3 +100,10 @@ func (p *paramsReader) GetDNSUnblockedHostnames() (hostnames []string, err error
}
return hostnames, nil
}
// GetDNSOverTLSCaching obtains if Unbound caching should be enable or not
// from the environment variable DOT_CACHING
func (p *paramsReader) GetDNSOverTLSCaching() (caching bool, err error) {
return p.envParams.GetOnOff("DOT_CACHING")
}