cleanup: config: drop duplicate code in showCerts setup
This commit is contained in:
parent
ab94e7eb8a
commit
32c387318a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue