From ae04c402da8c8fc49ef471a058b283123880d490 Mon Sep 17 00:00:00 2001 From: Kslr Date: Mon, 28 Oct 2019 23:00:09 +0800 Subject: [PATCH] Revert "Fix self-signed certificates on Windows" --- transport/internet/tls/config_windows.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transport/internet/tls/config_windows.go b/transport/internet/tls/config_windows.go index 2396bcd0..f02f6d26 100644 --- a/transport/internet/tls/config_windows.go +++ b/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 }