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:
parent
b920e8613c
commit
a084d37b9b
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue