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

always type is "ping" for an "interface"

Tracker type for an "interface" does not inherit global configuration and always be set "ping", or needs be set explicitly
This commit is contained in:
Ivan Revyakin 2019-11-11 17:38:16 +03:00 committed by GitHub
parent 6f9cd2d1bf
commit b9e6f3adc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ _validate_section() {
'tries:uinteger' \ 'tries:uinteger' \
'interval:uinteger' \ 'interval:uinteger' \
'interval_tries:uinteger' \ 'interval_tries:uinteger' \
'type:string:ping' \ 'type:string:undef' \
'enabled:bool:1' \ 'enabled:bool:1' \
'options:string' 'options:string'
@ -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
[ -z "$type" ] && type=$tmp_type [ "$type" = "undef" ] && type=${tmp_type:-ping}
[ -z "$enabled" ] && enabled=$tmp_enabled [ -z "$enabled" ] && enabled=$tmp_enabled
} }