1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2022-04-04 13:24:30 +02:00
parent 2248e12100
commit e959dc316f

View file

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