boxdd: Add insecure mode

This commit is contained in:
世界
2026-08-30 17:41:43 +08:00
parent b4600dd4f7
commit 0a4e4c8061
60 changed files with 1055 additions and 285 deletions
+2 -3
View File
@@ -2,7 +2,6 @@ package rule
import (
"context"
"os"
"path/filepath"
"strings"
"sync"
@@ -100,7 +99,7 @@ func (s *LocalRuleSet) reloadFile(path string) error {
var ruleSet option.PlainRuleSetCompat
switch s.fileFormat {
case C.RuleSetFormatSource, "":
content, err := os.ReadFile(path)
content, err := filemanager.ReadFile(s.ctx, path)
if err != nil {
return err
}
@@ -110,7 +109,7 @@ func (s *LocalRuleSet) reloadFile(path string) error {
}
case C.RuleSetFormatBinary:
setFile, err := os.Open(path)
setFile, err := filemanager.Open(s.ctx, path)
if err != nil {
return err
}