mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
update outbound
This commit is contained in:
parent
4c5d288f03
commit
2b7fbd2a0d
8 changed files with 139 additions and 46 deletions
|
|
@ -23,7 +23,9 @@ func initGitHTTPClient(cfg *config.Config) {
|
|||
MaxConnsPerHost: 30,
|
||||
IdleConnTimeout: 30 * time.Second,
|
||||
}
|
||||
initTransport(cfg, gtr)
|
||||
if cfg.Outbound.Enabled {
|
||||
initTransport(cfg, ctr)
|
||||
}
|
||||
gclient = &http.Client{
|
||||
Transport: gtr,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue