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

small change in omr-tracker about ss

This commit is contained in:
Ycarus 2018-09-19 15:29:58 +02:00
parent 382724efc0
commit 93925401cb

View file

@ -115,8 +115,7 @@ _launch_shadowsocks_tracker() {
local disabled local disabled
config_get disabled "$1" disabled 0 config_get disabled "$1" disabled 0
[ "$enabled" = "0" ] && return [ "$enabled" = "0" ] || [ "$disabled" = "1" ] && return
[ "$disabled" = "1" ] && return
procd_open_instance procd_open_instance
# shellcheck disable=SC2086 # shellcheck disable=SC2086
@ -143,6 +142,8 @@ start_service() {
if [ "$ss_disabled" != "1" ]; then if [ "$ss_disabled" != "1" ]; then
config_load shadowsocks-libev config_load shadowsocks-libev
config_foreach _launch_shadowsocks_tracker ss_local config_foreach _launch_shadowsocks_tracker ss_local
else
/etc/init.d/shadowsocks-libev rules_down
fi fi
} }