Skip to content

Commit 5b0f34b

Browse files
committed
fix snyk issues
1 parent 14d4917 commit 5b0f34b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ func main() {
339339
insecure = true
340340
}
341341
}
342-
pemCA = filepath.Join("/", pemCA)
342+
if ! strings.HasPrefix(pemCA, "/") {
343+
pemCA = filepath.Join("/", pemCA)
344+
}
343345
tlsCfg := createTLSConfig(pemCA, pemCert, pemKey, insecure)
344346
var transport http.RoundTripper = &http.Transport{
345347
TLSClientConfig: tlsCfg,

0 commit comments

Comments
 (0)