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

Add another way to get ifname

This commit is contained in:
Ycarus 2018-12-12 11:28:30 +01:00
parent b920e8613c
commit a084d37b9b

View file

@ -165,6 +165,7 @@ _bypass_proto() {
_intf_rule() {
local intf
config_get intf $1 ifname
[ -z "$ifname" ] && ifname=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
count=$((count+1))
local mode
config_get mode $1 multipath "off"