Proxy support

This commit is contained in:
Musab Gültekin
2021-09-24 16:15:20 +03:00
parent 242b025c9a
commit 97ecb7f118
8 changed files with 115 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ func NewGeziyor(opt *Options) *Geziyor {
RetryHTTPCodes: opt.RetryHTTPCodes,
RemoteAllocatorURL: opt.BrowserEndpoint,
AllocatorOptions: chromedp.DefaultExecAllocatorOptions[:],
ProxyFunc: opt.ProxyFunc,
})
if opt.Cache != nil {
geziyor.Client.Transport = &cache.Transport{