mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-01 21:45:44 +00:00
lua: standardize hooks and host APIs on PascalCase
This commit is contained in:
+4
-4
@@ -12,10 +12,10 @@ func RegisterLua(L *lua.LState) {
|
||||
L.PreloadModule("xray.log", func(L *lua.LState) int {
|
||||
module := L.NewTable()
|
||||
for name, severity := range map[string]Severity{
|
||||
"debug": Severity_Debug,
|
||||
"info": Severity_Info,
|
||||
"warning": Severity_Warning,
|
||||
"error": Severity_Error,
|
||||
"Debug": Severity_Debug,
|
||||
"Info": Severity_Info,
|
||||
"Warning": Severity_Warning,
|
||||
"Error": Severity_Error,
|
||||
} {
|
||||
module.RawSetString(name, L.NewFunction(func(L *lua.LState) int {
|
||||
var content strings.Builder
|
||||
|
||||
Reference in New Issue
Block a user