| 1 |
Fromscip-debian debian golang-raven-go 0.2.0+ds2-1 golang-raven-go/patches/`0001-Replace-gocertifi-with-system-cert.patch`#From.: Shengjing Zhu <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian golang-raven-go 0.2.0+ds2-1 golang-raven-go/patches/`0001-Replace-gocertifi-with-system-cert.patch`#Date.: Sat, 17 Dec 2022 15:11:03 +0800 |
| 3 |
Subjectscip-debian debian golang-raven-go 0.2.0+ds2-1 golang-raven-go/patches/`0001-Replace-gocertifi-with-system-cert.patch`#Subject.: Replace gocertifi with system cert |
| 4 |
|
| 5 |
--- |
| 6 |
client.go | 4 ++-- |
| 7 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 8 |
|
| 9 |
diff --git a/client.goscip-debian debian golang-raven-go 0.2.0+ds2-1 golang-raven-go/upstream/`client.go`: b/client.goscip-debian debian golang-raven-go 0.2.0+ds2-1 golang-raven-go/upstream/`client.go`: |
| 10 |
index a2c9a6c..be8d7b0 100644 |
| 11 |
--- a/client.go |
| 12 |
+++ b/client.go |
| 13 |
@@ -6,6 +6,7 @@ import ( |
| 14 |
"compress/zlib" |
| 15 |
"crypto/rand" |
| 16 |
"crypto/tls" |
| 17 |
+ "crypto/x509" |
| 18 |
"encoding/base64" |
| 19 |
"encoding/hex" |
| 20 |
"encoding/json" |
| 21 |
@@ -24,7 +25,6 @@ import ( |
| 22 |
"sync" |
| 23 |
"time" |
| 24 |
|
| 25 |
|
| 26 |
pkgErrors "github.com/pkg/errors" |
| 27 |
) |
| 28 |
|
| 29 |
@@ -338,7 +338,7 @@ var MaxQueueBuffer = 100 |
| 30 |
|
| 31 |
func newTransport() Transport { |
| 32 |
t := &HTTPTransport{} |
| 33 |
|
| 34 |
+ rootCAs, err := x509.SystemCertPool() |
| 35 |
if err != nil { |
| 36 |
log.Println("raven: failed to load root TLS certificates:", err) |
| 37 |
} else { |