mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Support interfaces where ifname is not defined in config
This commit is contained in:
parent
de107813d1
commit
9919f87f20
4 changed files with 14 additions and 0 deletions
|
@ -42,6 +42,7 @@ _launch_tracker() {
|
|||
|
||||
local ifname ip4table
|
||||
config_get ifname "$1" ifname
|
||||
[ -z "$ifname" ] && ifname=$(ifstatus "$1" | jsonfilter -e '@["l3_device"]')
|
||||
|
||||
config_get multipath "$1" multipath
|
||||
config_get gateway "$1" gateway
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue