mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-18 05:24:01 +00:00
disable signature & privileged
This commit is contained in:
@@ -37,9 +37,11 @@ func Compile(script string) (*Program, error) {
|
||||
return nil, errors.New("currently unavailable")
|
||||
code, err = base64.Decode(script)
|
||||
} else if name, err = platform.ResolveLuaFile(script); err == nil {
|
||||
if code, err = os.ReadFile(name); err == nil {
|
||||
privileged, err = verifyPrivilegedSignature(code)
|
||||
}
|
||||
code, err = os.ReadFile(name)
|
||||
// TODO: Restore privileged signature authorization and re-enable the related tests and CLI entries.
|
||||
// if err == nil {
|
||||
// privileged, err = verifyPrivilegedSignature(code)
|
||||
// }
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user