保存模拟部署迁移与最新构建校验阶段成果
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-08 18:33:21 +08:00
1 parent 519e2b4a5f
commit d7837de561
45 files changed
+1588 -109

No files matched your search

+2 -2
View File
@@ -10,11 +10,11 @@ import (
"git.pcux.cn/xuans/Smail/config"
"git.pcux.cn/xuans/Smail/utils/context"
securefile "git.pcux.cn/xuans/Smail/utils/file"
"git.pcux.cn/xuans/Smail/utils/runtimepath"
"github.com/emersion/go-msgauth/dkim"
log "github.com/sirupsen/logrus"
"io"
"os"
"path/filepath"
"strings"
)
@@ -41,7 +41,7 @@ func Init() error {
}
func loadPrivateKey(path string) (crypto.Signer, error) {
basePath := filepath.Join(config.ROOT_PATH, "data", "dkim")
basePath := runtimepath.DKIMDirectory(config.ROOT_PATH)
privateName, err := securefile.ControlledRelativePath(basePath, path)
if err != nil {
return nil, err