mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix on omr-bypass when reload is used but interfaces set not defined
This commit is contained in:
parent
16b6f1897e
commit
65edbf1af2
1 changed files with 2 additions and 1 deletions
|
@ -186,7 +186,8 @@ _intf_rule() {
|
||||||
[ -z "$count" ] && return
|
[ -z "$count" ] && return
|
||||||
[ -z "$intf" ] && return
|
[ -z "$intf" ] && return
|
||||||
[ "$(echo $1 | grep _dev)" != "" ] && return
|
[ "$(echo $1 | grep _dev)" != "" ] && return
|
||||||
[ -z "$RELOAD" ] && {
|
[ -z "$RELOAD" ] || [ "$(ipset --list | grep omr_dst_bypass_$intf)" = "" ] && {
|
||||||
|
unset RELOAD
|
||||||
ipset -q flush omr_dst_bypass_$intf > /dev/null 2>&1
|
ipset -q flush omr_dst_bypass_$intf > /dev/null 2>&1
|
||||||
ipset -q flush omr6_dst_bypass_$intf > /dev/null 2>&1
|
ipset -q flush omr6_dst_bypass_$intf > /dev/null 2>&1
|
||||||
ipset -q --exist restore <<-EOF
|
ipset -q --exist restore <<-EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue