Skip to content

Commit

Permalink
fix: missed sign with enable sign_all (close #3957)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 26, 2023
1 parent be62d64 commit 86beadc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/handles/fsread.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import (
"strings"
"time"

"github.com/alist-org/alist/v3/internal/conf"
"github.com/alist-org/alist/v3/internal/errs"
"github.com/alist-org/alist/v3/internal/fs"
"github.com/alist-org/alist/v3/internal/model"
"github.com/alist-org/alist/v3/internal/op"
"github.com/alist-org/alist/v3/internal/setting"
"github.com/alist-org/alist/v3/internal/sign"
"github.com/alist-org/alist/v3/pkg/utils"
"github.com/alist-org/alist/v3/server/common"
Expand Down Expand Up @@ -264,7 +266,7 @@ func FsGet(c *gin.Context) {
}
if storage.Config().MustProxy() || storage.GetStorage().WebProxy {
query := ""
if isEncrypt(meta, reqPath) {
if isEncrypt(meta, reqPath) || setting.GetBool(conf.SignAll) {
query = "?sign=" + sign.Sign(reqPath)
}
if storage.GetStorage().DownProxyUrl != "" {
Expand Down

0 comments on commit 86beadc

Please sign in to comment.