mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update tracking
This commit is contained in:
parent
32cd716eb7
commit
8d414c5d8b
3 changed files with 45 additions and 40 deletions
|
@ -326,13 +326,13 @@ reload_service() {
|
|||
start
|
||||
}
|
||||
|
||||
_rules_status() {
|
||||
rules_status() {
|
||||
[ -n "$(iptables -t nat -L | grep ss_rules_forward)" ] && return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
rules_up() {
|
||||
_rules_status || return 0
|
||||
rules_status || return 0
|
||||
config_load shadowsocks-libev
|
||||
for cfgtype in ss_redir; do
|
||||
config_foreach ss_rules_restart "$cfgtype" "$cfgtype"
|
||||
|
@ -342,7 +342,7 @@ rules_up() {
|
|||
}
|
||||
|
||||
rules_down() {
|
||||
_rules_status && return 0
|
||||
rules_status && return 0
|
||||
local bin="$ss_bindir/ss-rules"
|
||||
[ -x "$bin" ] && "$bin" -f
|
||||
local bin6="$ss_bindir/ss-rules6"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue