diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-09-02 09:48:01 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-09-02 09:48:01 +0000 |
commit | 1354c88aee5bc354b639b5798e3f3bb826246658 (patch) | |
tree | 3ea5363ecf834f5ee90af650bdbdeda18d23eb89 /applications | |
parent | c16cbd527c393c33fef167ec0ddad63966db770d (diff) |
applications/firewall: fix display of enabled/disabled rules, #594
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-firewall/luasrc/tools/firewall.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/applications/luci-firewall/luasrc/tools/firewall.lua b/applications/luci-firewall/luasrc/tools/firewall.lua index 26240aa7a..07162cba5 100644 --- a/applications/luci-firewall/luasrc/tools/firewall.lua +++ b/applications/luci-firewall/luasrc/tools/firewall.lua @@ -258,9 +258,7 @@ function opt_enabled(s, t, ...) return o else local o = s:option(t, "enabled", ...) - o.enabled = "" - o.disabled = "0" - o.default = o.enabled + o.default = "1" return o end end |