Browse Source

Revert "Fix self-signed certificates on Windows"

Kslr 6 years ago
parent
commit
ae04c402da
1 changed files with 5 additions and 1 deletions
  1. 5 1
      transport/internet/tls/config_windows.go

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

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