From 43cb22c57eb38044ae28680dbaf040a4e0416915 Mon Sep 17 00:00:00 2001 From: Tim Voronov Date: Mon, 10 Dec 2018 14:17:19 -0500 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 711d8f25..107ff531 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,9 @@ func main() { ## Proxy -By default, Ferret does not use any proxies. But you can pass an address of a proxy server you want to use. +By default, Ferret does not use any proxies. Partially, due to inability to force Chrome/Chromium (or any other Chrome Devtools Protocol compatible browser) to use a prticular proxy. It should be done during a browser launch. + +But you can pass an address of a proxy server you want to use for static pages. #### CLI @@ -446,8 +448,7 @@ func run(q string) ([]byte, error) { // create a root context ctx := context.Background() - // we inform each driver what proxy to use - ctx = html.WithDynamicDriver(ctx, dynamic.WithProxy(proxy)) + // we inform the driver what proxy to use ctx = html.WithStaticDriver(ctx, statuc.WithProxy(proxy)) return program.Run(ctx)