luci-app-shadowsocks-libev: add a ss_rules section if none exists
authorYousong Zhou <redacted>
Sun, 13 Aug 2017 04:28:37 +0000 (12:28 +0800)
committerYousong Zhou <redacted>
Sun, 13 Aug 2017 04:36:58 +0000 (12:36 +0800)
commitbe77667225991e5965afc549ae94a148ea4246e1
tree2008ffd4daec6957f0cd9dfc4364fe651d79ec57
parent2697ef81a1b395f3e0d53d8a536fb76205e60b04
luci-app-shadowsocks-libev: add a ss_rules section if none exists

When there is no ss_rules section, the "Redir Rules" tab will have empty
form in the generated page.  This is especialy the case when the
shadowsocks-libev config is from an earlier version before 3.0.6-2

Signed-off-by: Yousong Zhou <redacted>
applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua
git clone https://git.99rst.org/PROJECT