refactor(dns): make server-specific Lua registration private

This commit is contained in:
Meo597
2026-10-04 05:41:34 +08:00
parent 399563b6d9
commit 745526f14c
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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 {