From 481b523fe7c1e65ae5ce60010f7254d094b4f4ee Mon Sep 17 00:00:00 2001 From: kakune55 Date: Tue, 5 Aug 2025 12:39:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=20flag=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=AE=9A=E4=B9=89=E7=9A=84=E9=A1=BA=E5=BA=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4165da5..5edc1c8 100644 --- a/main.go +++ b/main.go @@ -19,9 +19,9 @@ var requestCounter int64 func main() { - flag.Parse() port := flag.Int("port", 8080, "代理服务器监听的端口") debug := flag.Bool("debug", false, "是否启用调试模式") + flag.Parse() if *debug { gin.SetMode(gin.DebugMode) // 启用调试模式