Skip to content

Commit

Permalink
Bugfix rule download proxy (#27)
Browse files Browse the repository at this point in the history
* Apply proxy when downloading rules

---------

Co-authored-by: frjcomp <[email protected]>
  • Loading branch information
frjcomp and frjcomp authored Oct 1, 2024
1 parent 322782c commit 974c79c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pipeleak/scanner/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"errors"
"io"
"net/http"
"os"
"regexp"
"slices"
"strings"

"github.com/CompassSecurity/pipeleak/helper"
"github.com/acarl005/stripansi"
"github.com/rs/zerolog/log"
"github.com/trufflesecurity/trufflehog/v3/pkg/engine"
Expand Down Expand Up @@ -61,7 +61,8 @@ func downloadFile(url string, filepath string) error {
}
defer out.Close()

resp, err := http.Get(url)
client := helper.GetNonVerifyingHTTPClient()
resp, err := client.Get(url)
if err != nil {
return err
}
Expand Down

0 comments on commit 974c79c

Please sign in to comment.