feat: 添加resolve方法解析dns,关闭script规则需要解析IP
This commit is contained in:
12
component/js/script_no_script.go
Normal file
12
component/js/script_no_script.go
Normal 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)) {
|
||||
}
|
||||
Reference in New Issue
Block a user