1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Set shadowsocks disabled if no server defined

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-04-08 14:19:25 +02:00
parent 882e609b98
commit 1675475d8e

View file

@ -471,6 +471,9 @@ function wizard_add()
luci.sys.call("/etc/init.d/shadowsocks rules_down >/dev/null 2>/dev/null")
end
else
if serversnb == 0 then
shadowsocks_disable = 1
end
ucic:set("shadowsocks-libev","sss0","key","")
ucic:set("shadowsocks-libev","sss0","disabled",shadowsocks_disable)
ucic:save("shadowsocks-libev")