feat: add proxy_range option for 139Yun Alias AList V3 (#6496)

This commit is contained in:
j2rong4cn
2024-05-22 23:31:42 +08:00
committed by GitHub
parent 7013d1b7b8
commit 5f60b51cf8
10 changed files with 62 additions and 14 deletions

View File

@ -106,6 +106,9 @@ func Proxy(c *gin.Context) {
return
}
}
if storage.GetStorage().ProxyRange {
common.ProxyRange(link, file.GetSize())
}
err = common.Proxy(c.Writer, c.Request, link, file)
if err != nil {
common.ErrorResp(c, err, 500, true)