From a0cca13debb411a29553bc09545f81ac63fecdad Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Tue, 29 Apr 2025 07:22:03 +0800 Subject: [PATCH 1/3] fix matcher key issue --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index fe6039d..1bfc76f 100644 --- a/main.go +++ b/main.go @@ -416,12 +416,12 @@ func main() { setupPages(cfg, r) r.GET("/github.com/:user/:repo/releases/*filepath", func(ctx context.Context, c *app.RequestContext) { - c.Set("matcher", "release") + c.Set("matcher", "releases") proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c) }) r.GET("/github.com/:user/:repo/archive/*filepath", func(ctx context.Context, c *app.RequestContext) { - c.Set("matcher", "release") + c.Set("matcher", "releases") proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c) }) @@ -436,11 +436,11 @@ func main() { }) r.GET("/github.com/:user/:repo/info/*filepath", func(ctx context.Context, c *app.RequestContext) { - c.Set("matcher", "gitclone") + c.Set("matcher", "clone") proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c) }) r.GET("/github.com/:user/:repo/git-upload-pack", func(ctx context.Context, c *app.RequestContext) { - c.Set("matcher", "gitclone") + c.Set("matcher", "clone") proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c) }) From dfc49ae28b12d5d068a9ecd1e7a336ca25fbb15c Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Tue, 29 Apr 2025 07:24:28 +0800 Subject: [PATCH 2/3] 25w32a --- CHANGELOG.md | 5 +++++ DEV-VERSION | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05800b3..ef7201a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # 更新日志 +25w32a - 2025-04-29 +--- +- PRE-RELEASE: 此版本是v3.2.1预发布版本,请勿在生产环境中使用; +- FIX: 修复在`HertZ`路由匹配器下`matcher`键值不一致的问题 + 3.2.0 - 2025-04-27 --- - CHANGE: 加入`ghcr`和`dockerhub`反代功能 diff --git a/DEV-VERSION b/DEV-VERSION index b7b50a1..ca629c1 100644 --- a/DEV-VERSION +++ b/DEV-VERSION @@ -1 +1 @@ -25w31a \ No newline at end of file +25w32a \ No newline at end of file From 6ca31bc25200ce8e4d8feaf3bbbc3a317b36a901 Mon Sep 17 00:00:00 2001 From: wjqserver <114663932+WJQSERVER@users.noreply.github.com> Date: Tue, 29 Apr 2025 07:43:19 +0800 Subject: [PATCH 3/3] 3.2.1 --- CHANGELOG.md | 4 ++++ VERSION | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef7201a..1f1aeac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +3.2.1 - 2025-04-29 +--- +- FIX: 修复在`HertZ`路由匹配器下`matcher`键值不一致的问题 + 25w32a - 2025-04-29 --- - PRE-RELEASE: 此版本是v3.2.1预发布版本,请勿在生产环境中使用; diff --git a/VERSION b/VERSION index a4f52a5..0444f32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.0 \ No newline at end of file +3.2.1 \ No newline at end of file