1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update shadowsocks-libev

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-24 21:02:33 +01:00
parent e8c48dad66
commit 8e52a5a911
2 changed files with 3 additions and 3 deletions

View file

@ -261,11 +261,11 @@ server_state() {
rules_up() {
rules_exist && return 0
[ "$(uci -q get shadowsocks-libev.ss_rules.disabled)" = "1" ] && return 0
logger -t "Shadowsocks" "Rules UP"
enabled="0"
config_load shadowsocks-libev
config_foreach server_state server
[ "$enabled" = "0" ] && return
logger -t "Shadowsocks" "Rules UP"
for cfgtype in ss_redir; do
config_foreach ss_rules_restart "$cfgtype" "$cfgtype"
done