small-packages/luci-app-openvpn-server/luasrc/model/cbi/openvpn-server/openvpn-server_pass_log.lua
2026-05-10 09:48:30 +08:00

14 lines
264 B
Lua
Executable File

local fs = require "nixio.fs"
local conffile = "/etc/openvpn/openvpn-password.log"
f = SimpleForm("logview")
t = f:field(TextValue, "conf")
t.rmempty = true
t.rows = 20
function t.cfgvalue()
return fs.readfile(conffile) or ""
end
t.readonly="readonly"
return f