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

ShadowSocks Rust init fix no output

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-07-04 10:50:11 +02:00
parent 3caab17ed1
commit 17f047fe01

View file

@ -339,7 +339,7 @@ server_state() {
rules_up() {
rules_exist && {
[ -f /bin/blocklanfw ] && /bin/blocklanfw 2>&1 >/dev/null
[ -f /bin/blocklanfw ] && /bin/blocklanfw >/dev/null 2>&1
return 0
}
[ "$(uci -q get shadowsocks-rust.ss_rules.disabled)" = "1" ] && return 0
@ -359,7 +359,7 @@ rules_up() {
logger -t "Shadowsocks-rust" "Reload omr-bypass rules"
/etc/init.d/omr-bypass reload_rules
}
[ -f /bin/blocklanfw ] && /bin/blocklanfw 2>&1 >/dev/null
[ -f /bin/blocklanfw ] && /bin/blocklanfw >/dev/null 2>&1
}
rules_down() {