doh_client_x509_auth: don't ignore errors
This commit is contained in:
parent
8c42c465b2
commit
9f9a17ed6b
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue