优化代码

This commit is contained in:
刘祥超
2022-08-04 11:34:06 +08:00
parent db353fe025
commit 5df209b6d5
31 changed files with 66 additions and 82 deletions

View File

@@ -10,8 +10,8 @@ import (
"github.com/iwind/TeaGo/files"
"github.com/iwind/TeaGo/types"
"gopkg.in/yaml.v3"
"io/ioutil"
"net/http"
"os"
"reflect"
)
@@ -315,7 +315,7 @@ func (this *WAF) Save(path string) error {
if err != nil {
return err
}
return ioutil.WriteFile(path, data, 0644)
return os.WriteFile(path, data, 0644)
}
func (this *WAF) ContainsGroupCode(code string) bool {