1 parent
dc188b1ed8
commit
d6cc81ed87
53 files changed
+909
-127
No files matched your search
@@ -41,7 +41,7 @@ func Init() error {
|
||||
}
|
||||
|
||||
func loadPrivateKey(path string) (crypto.Signer, error) {
|
||||
basePath := filepath.Join(config.ROOT_PATH, "config", "dkim")
|
||||
basePath := filepath.Join(config.ROOT_PATH, "data", "dkim")
|
||||
privateName, err := securefile.ControlledRelativePath(basePath, path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -93,7 +93,7 @@ func prepareDKIMTestDirectory(t *testing.T) (string, string) {
|
||||
oldRoot := config.ROOT_PATH
|
||||
root := t.TempDir()
|
||||
t.Cleanup(func() { config.ROOT_PATH = oldRoot })
|
||||
directory := filepath.Join(root, "config", "dkim")
|
||||
directory := filepath.Join(root, "data", "dkim")
|
||||
if err := os.MkdirAll(directory, 0700); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user