hotfix(settings): HTTPPROXY_LOG reading fixed

This commit is contained in:
Quentin McGaw
2024-04-08 07:35:24 +00:00
parent bf4cc0dabf
commit 6709a248d6

View File

@@ -166,7 +166,7 @@ func readHTTProxyLog(r *reader.Reader) (enabled *bool, err error) {
const currentKey = "HTTPPROXY_LOG"
// Retro-compatible keys using different boolean verbs
value := r.String("",
reader.RetroKeys("PROXY_LOG", "TINYPROXY_LOG", "HTTPPROXY_LOG"),
reader.RetroKeys("PROXY_LOG", "TINYPROXY_LOG"),
reader.IsRetro(currentKey))
switch strings.ToLower(value) {
case "":