Skip to content

Commit

Permalink
fix(image): check proxy settings from env for remote images (#3604)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen authored Feb 13, 2023
1 parent 12b563b commit 6cac6c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fanal/image/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func tryRemote(ctx context.Context, imageName string, ref name.Reference, option
Timeout: 10 * time.Minute,
}
t := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DisableKeepAlives: true,
DialContext: d.DialContext,
TLSClientConfig: &tls.Config{InsecureSkipVerify: option.InsecureSkipTLSVerify},
Expand Down

0 comments on commit 6cac6c9

Please sign in to comment.