Skip to content

Commit

Permalink
Make shadowsocks-libev not remove rust rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Dec 1, 2023
1 parent d40c0c2 commit b129ad3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shadowsocks-libev/files/shadowsocks-libev.init
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] && {
Expand Down
4 changes: 4 additions & 0 deletions shadowsocks-rust/files/shadowsocks-rust.init
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] && {
Expand Down

0 comments on commit b129ad3

Please sign in to comment.