1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Remove error for some alias interface in omr-bypass (#575)

This commit is contained in:
suyuan 2024-11-29 21:07:25 +08:00 committed by GitHub
commit ce8d79e1ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -615,6 +615,7 @@ _intf_rule() {
[ -n "$(echo $intf | grep '@')" ] && intf=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
[ -z "$intf" ] && config_get intf $1 device
[ -n "$(echo $intf | grep '/')" ] && return
[ -n "$(echo $intf | grep '@')" ] && return
#count=$((count+1))
[ "$intf" != "all" ] && config_get count $1 metric
[ "$intf" = "all" ] && count=""