doh_client_x509_auth: don't ignore errors

This commit is contained in:
Frank Denis 2020-06-11 11:03:17 +02:00
parent 8c42c465b2
commit 9f9a17ed6b
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ func (xTransport *XTransport) rebuildTransport() {
dlog.Fatal(err) dlog.Fatal(err)
} }
systemCertPool, err := x509.SystemCertPool() systemCertPool, err := x509.SystemCertPool()
if err != nil {
dlog.Fatal(err)
}
systemCertPool.AppendCertsFromPEM(caCert) systemCertPool.AppendCertsFromPEM(caCert)
tlsClientConfig.RootCAs = systemCertPool tlsClientConfig.RootCAs = systemCertPool
} }