mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix bypass error when device is a path
This commit is contained in:
parent
2248e12100
commit
e959dc316f
1 changed files with 1 additions and 0 deletions
|
@ -511,6 +511,7 @@ _intf_rule() {
|
|||
intf=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
|
||||
[ -n "$(echo $intf | grep '@')" ] && intf=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
|
||||
[ -z "$intf" ] && config_get intf $1 device
|
||||
[ -n "$(echo $intf | grep '/') " ] && return
|
||||
#count=$((count+1))
|
||||
config_get count $1 metric
|
||||
local mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue