Support using proxy dial-up connection to GitHub.

This commit is contained in:
三千 2025-02-09 21:41:55 +08:00
parent f5c32915b9
commit c7aea91c43
8 changed files with 80 additions and 9 deletions

View file

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