luci-app-shadowsocks-libev: fix setting boolean option
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 21 Aug 2017 16:02:53 +0000 (00:02 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Tue, 22 Aug 2017 12:19:49 +0000 (20:19 +0800)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua

index 83e16982f53c45349723397b8108bae650b19cac..1f5a9d22ffba897986ddb207a5cd1eefbe47f47a 100644 (file)
@@ -19,7 +19,7 @@ m = Map("shadowsocks-libev",
 local sdata = m:get('ss_rules')
 if not sdata then
        m:set('ss_rules', nil, 'ss_rules')
-       m:set('ss_rules', 'disabled', true)
+       m:set('ss_rules', 'disabled', "1")
 end
 
 function src_dst_option(s, ...)