()
| 58 | } |
| 59 | |
| 60 | func CrawlerClient() *http.Client { |
| 61 | if config.Cfg.Proxy.CrawlerProxyEnabled { |
| 62 | return proxyClient(4) |
| 63 | } |
| 64 | client := &http.Client{ |
| 65 | Timeout: time.Duration(4) * time.Second, |
| 66 | } |
| 67 | return client |
| 68 | } |
| 69 | |
| 70 | func BotClient(timeout uint8) *http.Client { |
| 71 | if config.Cfg.Proxy.BotProxyEnabled { |