luci: continue to fix #2992
This commit is contained in:
parent
ec5bdb6639
commit
da2e01edfa
@ -1,7 +1,7 @@
|
|||||||
local api = require "luci.passwall.api"
|
local api = require "luci.passwall.api"
|
||||||
local appname = api.appname
|
local appname = api.appname
|
||||||
local has_xray = api.finded_com("xray")
|
local has_xray = api.finded_com("xray")
|
||||||
local has_singbox = api.finded_com("sing-box")
|
local has_singbox = api.finded_com("singbox")
|
||||||
|
|
||||||
m = Map(appname)
|
m = Map(appname)
|
||||||
-- [[ Rule Settings ]]--
|
-- [[ Rule Settings ]]--
|
||||||
@ -66,7 +66,7 @@ if has_xray or has_singbox then
|
|||||||
o.default = "/usr/share/v2ray/"
|
o.default = "/usr/share/v2ray/"
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
|
|
||||||
s = m:section(TypedSection, "shunt_rules", "Xray/Sing-Box " .. translate("Shunt Rule"), "<a style='color: red'>" .. translate("Please note attention to the priority, the higher the order, the higher the priority.") .. "</a>")
|
s = m:section(TypedSection, "shunt_rules", "Sing-Box/Xray " .. translate("Shunt Rule"), "<a style='color: red'>" .. translate("Please note attention to the priority, the higher the order, the higher the priority.") .. "</a>")
|
||||||
s.template = "cbi/tblsection"
|
s.template = "cbi/tblsection"
|
||||||
s.anonymous = false
|
s.anonymous = false
|
||||||
s.addremove = true
|
s.addremove = true
|
||||||
|
@ -2,7 +2,7 @@ local api = require "luci.passwall.api"
|
|||||||
local appname = api.appname
|
local appname = api.appname
|
||||||
local datatypes = api.datatypes
|
local datatypes = api.datatypes
|
||||||
|
|
||||||
m = Map(appname, "Xray " .. translate("Shunt Rule"))
|
m = Map(appname, "Sing-Box/Xray " .. translate("Shunt Rule"))
|
||||||
m.redirect = api.url()
|
m.redirect = api.url()
|
||||||
|
|
||||||
s = m:section(NamedSection, arg[1], "shunt_rules", "")
|
s = m:section(NamedSection, arg[1], "shunt_rules", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user