Skip to content

Commit 974c79c

Browse files
frjcompfrjcomp
and
frjcomp
authored
Bugfix rule download proxy (#27)
* Apply proxy when downloading rules --------- Co-authored-by: frjcomp <frj1@securelogon.ch>
1 parent 322782c commit 974c79c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pipeleak/scanner/rules.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import (
44
"context"
55
"errors"
66
"io"
7-
"net/http"
87
"os"
98
"regexp"
109
"slices"
1110
"strings"
1211

12+
"github.com/CompassSecurity/pipeleak/helper"
1313
"github.com/acarl005/stripansi"
1414
"github.com/rs/zerolog/log"
1515
"github.com/trufflesecurity/trufflehog/v3/pkg/engine"
@@ -61,7 +61,8 @@ func downloadFile(url string, filepath string) error {
6161
}
6262
defer out.Close()
6363

64-
resp, err := http.Get(url)
64+
client := helper.GetNonVerifyingHTTPClient()
65+
resp, err := client.Get(url)
6566
if err != nil {
6667
return err
6768
}

0 commit comments

Comments
 (0)