projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16cbd5
)
applications/firewall: fix display of enabled/disabled rules, #594
author
Manuel Munz
<
[email protected]
>
Mon, 2 Sep 2013 09:48:01 +0000
(09:48 +0000)
committer
Manuel Munz
<
[email protected]
>
Mon, 2 Sep 2013 09:48:01 +0000
(09:48 +0000)
applications/luci-firewall/luasrc/tools/firewall.lua
patch
|
blob
|
history
diff --git
a/applications/luci-firewall/luasrc/tools/firewall.lua
b/applications/luci-firewall/luasrc/tools/firewall.lua
index 26240aa7a494e505af29ba724fbd883412920196..07162cba5cbbae9186164af11bf4c52b50af447b 100644
(file)
--- 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