소스 검색

Merge pull request #1893 from lixin9311/patch-1

Fix self-signed certificates on Windows
Kslr 6 년 전
부모
커밋
5bb4efd126
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  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()
 }