Procházet zdrojové kódy

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

Revert "Fix self-signed certificates on Windows"
Kslr před 6 roky
rodič
revize
e55f1c5722
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  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
 }