Skip to content

Commit bb2f7bc

Browse files
authored
启动显示版本号
1 parent 4ec36da commit bb2f7bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,17 @@ func main() {
116116
router.NoRoute(handlers.GitHubProxyHandler)
117117

118118
cfg := config.GetConfig()
119-
fmt.Printf("🚀 HubProxy 启动成功\n")
120-
fmt.Printf("📡 监听地址: %s:%d\n", cfg.Server.Host, cfg.Server.Port)
121-
fmt.Printf("限流配置: %d请求/%g小时\n", cfg.RateLimit.RequestLimit, cfg.RateLimit.PeriodHours)
119+
fmt.Printf("HubProxy 启动成功\n")
120+
fmt.Printf("监听地址: %s:%d\n", cfg.Server.Host, cfg.Server.Port)
121+
fmt.Printf("限流配置: %d请求/%g小时\n", cfg.RateLimit.RequestLimit, cfg.RateLimit.PeriodHours)
122122

123123
// 显示HTTP/2支持状态
124124
if cfg.Server.EnableH2C {
125125
fmt.Printf("H2c: 已启用\n")
126126
}
127127

128-
fmt.Printf("🔗 项目地址: https://github.com/sky22333/hubproxy\n")
128+
fmt.Printf("版本号: v1.1.6\n")
129+
fmt.Printf("项目地址: https://github.com/sky22333/hubproxy\n")
129130

130131
// 创建HTTP2服务器
131132
server := &http.Server{

0 commit comments

Comments
 (0)