mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-05 07:13:36 +00:00
refactor(dns): make server-specific Lua registration private
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ func newScriptEngine(path string, server *DNS) (*scriptEngine, error) {
|
||||
func(L *lua.LState) {
|
||||
geodata.RegisterLua(L)
|
||||
log.RegisterLua(L)
|
||||
server.RegisterLua(L)
|
||||
server.registerLua(L)
|
||||
},
|
||||
func(L *lua.LState) error {
|
||||
if L.GetGlobal("HandleDNSQuery").Type() != lua.LTFunction {
|
||||
|
||||
Reference in New Issue
Block a user