Skip to content

Commit bfbda2c

Browse files
authored
Merge pull request #5 from pry0cc/master
Added quick n dirty tls not-checking
2 parents 4cd287c + fb9cc45 commit bfbda2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/pkg/gitjacker/retriever.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"regexp"
1212
"strings"
1313
"time"
14+
"crypto/tls"
1415

1516
"github.com/sirupsen/logrus"
1617
)
@@ -92,12 +93,15 @@ func New(target *url.URL, outputDir string) *retriever {
9293

9394
relative, _ := url.Parse(".git/")
9495
target = target.ResolveReference(relative)
96+
customTransport := http.DefaultTransport.(*http.Transport).Clone()
97+
customTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
9598

9699
return &retriever{
97100
baseURL: target,
98101
outputDir: outputDir,
99102
http: &http.Client{
100103
Timeout: time.Second * 10,
104+
Transport: customTransport,
101105
},
102106
downloaded: make(map[string]bool),
103107
summary: Summary{

0 commit comments

Comments
 (0)