From: Yousong Zhou Date: Mon, 21 Aug 2017 16:02:53 +0000 (+0800) Subject: luci-app-shadowsocks-libev: fix setting boolean option X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=56e9ac6642c580cdd121e1bcd0f3bbd924c44dd0;p=oweals%2Fluci.git luci-app-shadowsocks-libev: fix setting boolean option Signed-off-by: Yousong Zhou --- 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 83e16982f..1f5a9d22f 100644 --- 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 @@ -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, ...)