Skip to content

Commit

Permalink
Merge pull request #1981 from v2ray/revert-1893-patch-1
Browse files Browse the repository at this point in the history
Revert "Fix self-signed certificates on Windows"
  • Loading branch information
kslr committed Oct 28, 2019
2 parents 8a36846 + ae04c40 commit e55f1c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion transport/internet/tls/config_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e55f1c5

Please sign in to comment.