Merge pull request #1893 from lixin9311/patch-1

Fix self-signed certificates on Windows
pull/1981/head
Kslr 2019-10-27 15:23:39 +08:00 committed by GitHub
commit 5bb4efd126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

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