diff --git a/runner/runner.go b/runner/runner.go index cb53037..8d1a7a9 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -13,6 +13,8 @@ import ( "sync" "syscall" + "net/url" + "github.com/knq/chromedp/client" ) @@ -379,6 +381,11 @@ func Proxy(proxy string) CommandLineOption { return Flag("proxy-server", proxy) } +// ProxyPacURL is the Chrome command line option to set the URL of a proxy PAC file. +func ProxyPacURL(pacURL url.URL) CommandLineOption { + return Flag("proxy-pac-url", pacURL.String()) +} + // WindowSize is the Chrome command line option to set the initial window size. func WindowSize(width, height int) CommandLineOption { return Flag("window-size", fmt.Sprintf("%d,%d", width, height))