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

Run omr-tracker is no hosts defined but type is none

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-07 18:25:36 +01:00
parent 244b8f421c
commit b431e3af51

View file

@ -31,7 +31,7 @@ _validate_section() {
[ -z "$interval" ] && interval=$tmp_interval [ -z "$interval" ] && interval=$tmp_interval
[ -z "$interval_tries" ] && interval_tries=$tmp_interval_tries [ -z "$interval_tries" ] && interval_tries=$tmp_interval_tries
[ -z "$options" ] && options=$tmp_options [ -z "$options" ] && options=$tmp_options
[ "$type" = "undef" ] && type=${tmp_type:-ping} [ "$type" = "undef" ] && type=${tmp_type:-ping}
[ -z "$enabled" ] && enabled=$tmp_enabled [ -z "$enabled" ] && enabled=$tmp_enabled
} }
@ -56,7 +56,7 @@ _launch_tracker() {
[ -z "$ifname" ] || [ -z "$multipath" ] || [ "$multipath" = "off" ] && [ "$1" != "glorytun" ] && [ "$1" != "omrvpn" ] && return [ -z "$ifname" ] || [ -z "$multipath" ] || [ "$multipath" = "off" ] && [ "$1" != "glorytun" ] && [ "$1" != "omrvpn" ] && return
[ "${ifenabled}" = "0" ] && return [ "${ifenabled}" = "0" ] && return
[ "${enabled}" = "0" ] && return [ "${enabled}" = "0" ] && return
[ -z "${hosts}" ] && return [ -z "${hosts}" ] && [ "$type" != "none" ] && return
[ -z "${interval_tries}" ] && interval_tries=1 [ -z "${interval_tries}" ] && interval_tries=1
procd_open_instance procd_open_instance