mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
luci-app-ssr-plus: display log when enable socks5 server only
This commit is contained in:
parent
8faac30089
commit
d0922b9398
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=175
|
PKG_VERSION:=175
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
@ -1,17 +1,20 @@
|
|||||||
|
local fs = require "nixio.fs"
|
||||||
|
|
||||||
f = SimpleForm("logview")
|
f = SimpleForm("logview")
|
||||||
f.reset = false
|
|
||||||
f.submit = false
|
|
||||||
t = f:field(TextValue, "conf")
|
t = f:field(TextValue, "conf")
|
||||||
t.rmempty = true
|
t.rmempty = true
|
||||||
t.rows = 20
|
t.rows = 20
|
||||||
function t.cfgvalue()
|
function t.cfgvalue()
|
||||||
local logs = luci.util.execi("cat /tmp/ssrplus.log")
|
if fs.access("/tmp/ssrplus.log") then
|
||||||
local s = ""
|
local logs = luci.util.execi("cat /tmp/ssrplus.log")
|
||||||
for line in logs do
|
local s = ""
|
||||||
s = line .. "\n" .. s
|
for line in logs do
|
||||||
end
|
s = line .. "\n" .. s
|
||||||
return s
|
end
|
||||||
|
return s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
t.readonly="readonly"
|
t.readonly="readonly"
|
||||||
|
|
||||||
return f
|
return f
|
Loading…
Reference in New Issue
Block a user