瀏覽代碼

Revert "Fix self-signed certificates on Windows"

Kslr 6 年之前
父節點
當前提交
ae04c402da
共有 1 個文件被更改,包括 5 次插入1 次删除
  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
 }