mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
commit
7eb312243c
4 changed files with 15 additions and 6 deletions
|
|
@ -1,5 +1,14 @@
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
3.2.1 - 2025-04-29
|
||||||
|
---
|
||||||
|
- FIX: 修复在`HertZ`路由匹配器下`matcher`键值不一致的问题
|
||||||
|
|
||||||
|
25w32a - 2025-04-29
|
||||||
|
---
|
||||||
|
- PRE-RELEASE: 此版本是v3.2.1预发布版本,请勿在生产环境中使用;
|
||||||
|
- FIX: 修复在`HertZ`路由匹配器下`matcher`键值不一致的问题
|
||||||
|
|
||||||
3.2.0 - 2025-04-27
|
3.2.0 - 2025-04-27
|
||||||
---
|
---
|
||||||
- CHANGE: 加入`ghcr`和`dockerhub`反代功能
|
- CHANGE: 加入`ghcr`和`dockerhub`反代功能
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
25w31a
|
25w32a
|
||||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
3.2.0
|
3.2.1
|
||||||
8
main.go
8
main.go
|
|
@ -416,12 +416,12 @@ func main() {
|
||||||
setupPages(cfg, r)
|
setupPages(cfg, r)
|
||||||
|
|
||||||
r.GET("/github.com/:user/:repo/releases/*filepath", func(ctx context.Context, c *app.RequestContext) {
|
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)
|
proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c)
|
||||||
})
|
})
|
||||||
|
|
||||||
r.GET("/github.com/:user/:repo/archive/*filepath", func(ctx context.Context, c *app.RequestContext) {
|
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)
|
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) {
|
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)
|
proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c)
|
||||||
})
|
})
|
||||||
r.GET("/github.com/:user/:repo/git-upload-pack", func(ctx context.Context, c *app.RequestContext) {
|
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)
|
proxy.RoutingHandler(cfg, limiter, iplimiter)(ctx, c)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue