Skip to content

Commit

Permalink
Place proxy for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Feb 16, 2024
1 parent 18b2efc commit eb79a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reduxer/reduxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ func capture(ctx context.Context, cfg *config.Options, uri *url.URL, dir string)

fallback := func() (*screenshot.Screenshots[screenshot.Path], error) {
logger.Debug("reduxer using local browser")
if os.Getenv("PROXY_SERVER") == "" {
os.Setenv("PROXY_SERVER", cfg.Proxy())
}
shot, err = screenshot.Screenshot[screenshot.Path](ctx, uri, opts...)
if err != nil {
if err == context.DeadlineExceeded {
Expand Down

0 comments on commit eb79a14

Please sign in to comment.