summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-25 15:06:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-25 15:06:17 +0000
commit9b01a6e862d119b999ce57173f8de55c15cc8818 (patch)
tree9ae103a0798491f7904077b3edc88fd0c4c5c265 /applications/luci-upnp/luasrc/model
parent55f6cb895b288424df57f0162a23ed3106908024 (diff)
applications/luci-upnp: add option to enable/disable secure mode
Diffstat (limited to 'applications/luci-upnp/luasrc/model')
-rw-r--r--applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
index 79a38f7c53..0d07a564ad 100644
--- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
+++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
@@ -25,8 +25,9 @@ function e.cfgvalue(self, section)
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
end
+s:option(Flag, "secure_mode").rmempty = true
s:option(Flag, "log_output").rmempty = true
s:option(Value, "download").rmempty = true
s:option(Value, "upload").rmempty = true
-return m \ No newline at end of file
+return m