🚧 support proxy url

This commit is contained in:
微凉
2021-12-08 10:33:26 +08:00
parent b8698700ef
commit 190c8001a5
11 changed files with 45 additions and 13 deletions

View File

@ -13,7 +13,7 @@ func DownCheck(c *gin.Context) {
rawPath := c.Param("path")
rawPath = utils.ParsePath(rawPath)
name := utils.Base(rawPath)
if sign == utils.Get16MD5Encode(fmt.Sprintf("%s-%s", conf.Token, name)) {
if sign == utils.SignWithToken(name, conf.Token) {
c.Next()
return
}