mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix block from lan
This commit is contained in:
parent
240076b993
commit
5e058118c8
6 changed files with 34 additions and 37 deletions
|
@ -339,7 +339,10 @@ server_state() {
|
|||
}
|
||||
|
||||
rules_up() {
|
||||
rules_exist && return 0
|
||||
rules_exist && {
|
||||
[ -f /bin/blocklanfw ] && /bin/blocklanfw 2>&1 >/dev/null
|
||||
return 0
|
||||
}
|
||||
[ "$(uci -q get shadowsocks-libev.ss_rules.disabled)" = "1" ] && return 0
|
||||
enabled="0"
|
||||
passkey=""
|
||||
|
@ -357,6 +360,7 @@ rules_up() {
|
|||
logger -t "Shadowsocks" "Reload omr-bypass rules"
|
||||
/etc/init.d/omr-bypass reload_rules
|
||||
}
|
||||
[ -f /bin/blocklanfw ] && /bin/blocklanfw 2>&1 >/dev/null
|
||||
}
|
||||
|
||||
rules_down() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue