fix: DProxyTypes judge

This commit is contained in:
Xhofe
2022-03-22 19:53:26 +08:00
parent 9e483d902f
commit db275f885a
4 changed files with 5 additions and 12 deletions

View File

@ -30,7 +30,7 @@ func Proxy(c *gin.Context) {
// 4. 开启webdav中转(需要验证sign)
if !account.Proxy && !driver.Config().OnlyProxy &&
utils.GetFileType(filepath.Ext(rawPath)) != conf.TEXT &&
!utils.IsContain(conf.DProxyTypes, filepath.Ext(rawPath)) {
!utils.IsContain(conf.DProxyTypes, utils.Ext(rawPath)) {
// 只开启了webdav中转,验证sign
ok := false
if account.WebdavProxy {