Browse Source

Merge pull request #1981 from v2ray/revert-1893-patch-1

Revert "Fix self-signed certificates on Windows"
Kslr 6 years ago
parent
commit
e55f1c5722
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"
 import "crypto/x509"
 
 
 func (c *Config) getCertPool() (*x509.CertPool, error) {
 func (c *Config) getCertPool() (*x509.CertPool, error) {
-	return c.loadSelfCertPool()
+	if c.DisableSystemRoot {
+		return c.loadSelfCertPool()
+	}
+
+	return nil, nil
 }
 }