mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-17 21:14:01 +00:00
Lua: Sandbox by default (whitelisted functions); Disable inline scripts for now; Add more checks for security reasons (#7136)
https://github.com/XTLS/Xray-core/pull/7136#issuecomment-6158632073 https://github.com/XTLS/Xray-core/pull/7136#issuecomment-6170831601 https://github.com/XTLS/Xray-core/pull/7136#issuecomment-6184362904
This commit is contained in:
@@ -4,6 +4,8 @@ package base
|
||||
type CommandEnvHolder struct {
|
||||
// Executable name of current binary
|
||||
Exec string
|
||||
// Full name of the command being executed
|
||||
CommandName string
|
||||
// commands column width of current command
|
||||
CommandsWidth int
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ BigCmdLoop:
|
||||
}
|
||||
|
||||
buildCommandText(cmd)
|
||||
CommandEnv.CommandName = cmdName
|
||||
cmd.Run(cmd, args)
|
||||
Exit()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user