projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-shadowsocks-libev: fix typo in setting ss_rules.disabled=true
[project/luci.git]
/
applications
/
luci-app-shadowsocks-libev
/
luasrc
/
model
/
cbi
/
shadowsocks-libev
/
rules.lua
diff --git
a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua
b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua
index
fe5f9c3
..
1a3dcb8
100644
(file)
--- a/
applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua
+++ b/
applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua
@@
-16,8
+16,13
@@
m = Map("shadowsocks-libev",
If the prior check results in action <em>checkdst</em>, packets will continue \
to have their destination addresses checked."))
If the prior check results in action <em>checkdst</em>, packets will continue \
to have their destination addresses checked."))
+local sdata = m:get('ss_rules')
+if not sdata then
+ m:set('ss_rules', nil, 'ss_rules')
+ m:set('ss_rules', 'disabled', true)
+end
-s = m:section(NamedSection, "ss_rules", "ss
-
rules")
+s = m:section(NamedSection, "ss_rules", "ss
_
rules")
s:tab("general", translate("General Settings"))
s:tab("srcip", translate("Source Settings"))
s:tab("dstip", translate("Destination Settings"))
s:tab("general", translate("General Settings"))
s:tab("srcip", translate("Source Settings"))
s:tab("dstip", translate("Destination Settings"))