mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-05 15:16:07 +02:00
Update README.md
This commit is contained in:
parent
0ec1f86e88
commit
43cb22c57e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user