1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Doesn't track interface if interface down

This commit is contained in:
Ycarus 2018-07-24 14:27:41 +02:00
parent 0d501819a4
commit f95a985605

View file

@ -45,9 +45,11 @@ _launch_tracker() {
[ -z "$ifname" ] && ifname=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
config_get multipath "$1" multipath
config_get ifenabled "$1" auto
config_get gateway "$1" gateway
[ -z "$ifname" ] || [ -z "$multipath" ] || [ "$multipath" = "off" ] && [ "$1" != "glorytun" ] && [ "$1" != "omrvpn" ] && return
[ "${ifenabled}" = "0" ] && return
[ "${enabled}" = "0" ] && return
procd_open_instance