Misc lint fixes

This commit is contained in:
David Stotijn
2022-02-28 16:21:01 +01:00
parent af26987601
commit 857aa0c49e
12 changed files with 41 additions and 12 deletions

View File

@ -24,6 +24,7 @@ type Config struct {
// with an allocated Chrome browser.
func NewExecAllocator(ctx context.Context, cfg Config) (context.Context, context.CancelFunc) {
proxyBypass := strings.Join(append([]string{"<-loopback"}, cfg.ProxyBypassHosts...), ";")
//nolint:gocritic
opts := append(defaultOpts,
chromedp.ProxyServer(cfg.ProxyServer),
chromedp.Flag("proxy-bypass-list", proxyBypass),