1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-07-24 08:19:44 +02:00
parent 16b6f1897e
commit 65edbf1af2

View file

@ -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