Support using proxy dial-up connection to GitHub. (#46)

This commit is contained in:
三千 2025-02-10 00:45:37 +08:00 committed by GitHub
parent 09163ed4df
commit 4c5d288f03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 86 additions and 9 deletions

View file

@ -100,8 +100,8 @@ func setupRateLimit(cfg *config.Config) {
}
}
func InitReq() {
proxy.InitReq()
func InitReq(cfg *config.Config) {
proxy.InitReq(cfg)
}
func init() {
@ -109,7 +109,7 @@ func init() {
flag.Parse()
loadConfig()
setupLogger(cfg)
InitReq()
InitReq(cfg)
loadlist(cfg)
setupRateLimit(cfg)