fix wrong transport

This commit is contained in:
里見 灯花 2025-02-12 19:14:13 +08:00 committed by GitHub
parent 9aaa3e64d3
commit b95582ae1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ func initGitHTTPClient(cfg *config.Config) {
IdleConnTimeout: 30 * time.Second, IdleConnTimeout: 30 * time.Second,
} }
if cfg.Outbound.Enabled { if cfg.Outbound.Enabled {
initTransport(cfg, ctr) initTransport(cfg, gtr)
} }
gclient = &http.Client{ gclient = &http.Client{
Transport: gtr, Transport: gtr,