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

Add case when proxy is none

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-08 09:24:57 +01:00
parent 3bf770dc09
commit d6fb86ed7a

View file

@ -1065,6 +1065,15 @@ _set_config_from_vps() {
set openmptcprouter.settings.shadowsocks_disable=1
commit openmptcprouter
EOF
elif [ "$current_proxy" = "none" ]; then
uci -q batch <<-EOF >/dev/null
set shadowsocks-libev.sss0.disabled=1
commit shadowsocks-libev
set v2ray.main.enabled=0
commit shadowsocks-libev
set openmptcprouter.settings.shadowsocks_disable=1
commit openmptcprouter
EOF
fi
fi
fi