Browse Source

Merge pull request #1893 from lixin9311/patch-1

Fix self-signed certificates on Windows
Kslr 6 years ago
parent
commit
5bb4efd126
1 changed files with 1 additions and 5 deletions
  1. 1 5
      transport/internet/tls/config_windows.go

+ 1 - 5
transport/internet/tls/config_windows.go

@@ -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()
 }