Revert "Fix self-signed certificates on Windows"

pull/1981/head
Kslr 2019-10-28 23:00:09 +08:00 committed by GitHub
parent 8a36846869
commit ae04c402da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -6,5 +6,9 @@ package tls
import "crypto/x509"
func (c *Config) getCertPool() (*x509.CertPool, error) {
return c.loadSelfCertPool()
if c.DisableSystemRoot {
return c.loadSelfCertPool()
}
return nil, nil
}