update outbound

This commit is contained in:
WJQSERVER 2025-02-10 18:53:16 +08:00
parent 4c5d288f03
commit 2b7fbd2a0d
8 changed files with 139 additions and 46 deletions

View file

@ -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,
}