cleanup: config: drop duplicate code in showCerts setup

This commit is contained in:
Markus Linnala 2019-10-03 15:31:15 +03:00 committed by Frank Denis
parent ab94e7eb8a
commit 32c387318a
1 changed files with 0 additions and 4 deletions

View File

@ -465,10 +465,6 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
netprobeAddress = config.FallbackResolver
}
proxy.showCerts = *showCerts || len(os.Getenv("SHOW_CERTS")) > 0
if len(os.Getenv("SHOW_CERTS")) > 0 {
proxy.showCerts = true
}
if proxy.showCerts {
proxy.listenAddresses = nil
}