From eb79a1470898dadd333826d7783b6af379c92e02 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:42:36 +0000 Subject: [PATCH] Place proxy for chrome --- reduxer/reduxer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reduxer/reduxer.go b/reduxer/reduxer.go index 56735d3a..7259aa0f 100644 --- a/reduxer/reduxer.go +++ b/reduxer/reduxer.go @@ -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 {