feat: 添加resolve方法解析dns,关闭script规则需要解析IP

This commit is contained in:
Skyxim
2022-06-05 21:06:26 +08:00
parent 9602d42d7d
commit d578ca788c
7 changed files with 101 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
//go:build no_script
package js
import "fmt"
func NewJS(name, code string) error {
fmt.Errorf("unsupported script on the build")
}
func Run(name string, args map[string]any, callback func(any, error)) {
}