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

Make shadowsocks-libev not remove rust rules

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-12-01 22:55:26 +01:00
parent d40c0c29ad
commit b129ad30ae
2 changed files with 8 additions and 0 deletions

View file

@ -369,6 +369,10 @@ rules_up() {
rules_down() {
rules_exist || return 0
enabled="0"
config_load shadowsocks-rust
config_foreach server_state server
[ "$enabled" = "1" ] && return
logger -t "Shadowsocks" "Rules DOWN"
local bin="$ss_bindir/ss-rules"
[ -x "$bin" ] && {

View file

@ -364,6 +364,10 @@ rules_up() {
rules_down() {
rules_exist || return 0
enabled="0"
config_load shadowsocks-libev
config_foreach server_state server
[ "$enabled" = "1" ] && return
logger -t "Shadowsocks-rust" "Rules DOWN"
local bin="$ss_bindir/ssr-rules"
[ -x "$bin" ] && {