Browse Source

Fix self-signed certificates on Windows

lucus lee 6 years ago
parent
commit
3b087bf8c4
1 changed files with 1 additions and 5 deletions
  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()
 }