feat: 添加resolve方法解析dns,关闭script规则需要解析IP
This commit is contained in:
@@ -13,6 +13,8 @@ import (
|
||||
func init() {
|
||||
logPrinter := console.RequireWithPrinter(&JsLog{})
|
||||
require.RegisterNativeModule("console", logPrinter)
|
||||
contextFuncLoader := newContext()
|
||||
require.RegisterNativeModule("context", contextFuncLoader)
|
||||
}
|
||||
|
||||
func preSetting(rt *goja.Runtime) {
|
||||
@@ -20,6 +22,7 @@ func preSetting(rt *goja.Runtime) {
|
||||
registry.Enable(rt)
|
||||
|
||||
console.Enable(rt)
|
||||
enable(rt)
|
||||
eventloop.EnableConsole(true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user