1
0
Fork 0
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:
Ycarus 2018-06-15 22:40:10 +02:00
parent de107813d1
commit 9919f87f20
4 changed files with 14 additions and 0 deletions

View file

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