mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-26 03:51:57 +02:00
Update README.md
This commit is contained in:
parent
2be0d471ac
commit
efa0444c39
@ -454,11 +454,9 @@ func run(q string) ([]byte, error) {
|
||||
|
||||
// create a root context
|
||||
ctx := context.Background()
|
||||
// we inform the driver what proxy to use
|
||||
ctx = html.WithStatic(
|
||||
ctx,
|
||||
http.NewDriver(http.WithProxy(proxy)),
|
||||
)
|
||||
|
||||
// we inform the driver what proxy to use
|
||||
ctx = drivers.WithContext(ctx, http.NewDriver(http.WithProxy(proxy)), drivers.AsDefault())
|
||||
|
||||
return program.Run(ctx)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user