lua: add recursive read-only bindings for borrowed slices

This commit is contained in:
Meo597
2026-10-15 06:36:12 +08:00
parent ef4f4888df
commit b408f7f0c7
5 changed files with 187 additions and 3 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func RegisterLua(L *lua.LState) {
"Match": luaIPMatch,
"AnyMatch": luaIPAnyMatch,
"Matches": luaIPMatches,
"FilterIPs": newLuaIPFilterIPs(xlua.NewSlicePusher[net.IP](L)),
"FilterIPs": newLuaIPFilterIPs(xlua.NewReadOnlySlicePusher[net.IP](L)),
}, "SetReverse", "ToggleReverse")
return 1
}))