summaryrefslogtreecommitdiffstats
path: root/openvpn-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-model.lua')
-rw-r--r--openvpn-model.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua
index b85c4d9..adaee27 100644
--- a/openvpn-model.lua
+++ b/openvpn-model.lua
@@ -188,7 +188,12 @@ end
function mymodule.get_logfile(f)
local config = config_content(configfile)
- return cfe({ value=config.log or "", label="Log file" })
+ local value = {}
+ value.filename = cfe({value=config.log or "/var/log/messages", label="File name"})
+ if not config.log then
+ value.grep = cfe({ value="openvpn", label="Grep" })
+ end
+ return cfe({ value=value, label="Log file" })
end
function mymodule.get_filecontent()