mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-02 05:46:39 +00:00
lua: standardize hooks and host APIs on PascalCase
This commit is contained in:
@@ -10,7 +10,7 @@ func RegisterLua(L *lua.LState) {
|
||||
L.PreloadModule("xray.geodata", func(L *lua.LState) int {
|
||||
module := L.NewTable()
|
||||
|
||||
module.RawSetString("domainMatcher", L.NewFunction(func(L *lua.LState) int {
|
||||
module.RawSetString("DomainMatcher", L.NewFunction(func(L *lua.LState) int {
|
||||
parsed, err := ParseDomainRules(luaRules(L), Domain_Domain)
|
||||
if err != nil {
|
||||
L.RaiseError("%v", err)
|
||||
@@ -25,7 +25,7 @@ func RegisterLua(L *lua.LState) {
|
||||
return 1
|
||||
}))
|
||||
|
||||
module.RawSetString("ipMatcher", L.NewFunction(func(L *lua.LState) int {
|
||||
module.RawSetString("IPMatcher", L.NewFunction(func(L *lua.LState) int {
|
||||
parsed, err := ParseIPRules(luaRules(L))
|
||||
if err != nil {
|
||||
L.RaiseError("%v", err)
|
||||
|
||||
Reference in New Issue
Block a user