mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Disable omr-tracker if no hosts defined
This commit is contained in:
parent
200d7101a5
commit
244b8f421c
2 changed files with 4 additions and 3 deletions
|
@ -56,6 +56,7 @@ _launch_tracker() {
|
|||
[ -z "$ifname" ] || [ -z "$multipath" ] || [ "$multipath" = "off" ] && [ "$1" != "glorytun" ] && [ "$1" != "omrvpn" ] && return
|
||||
[ "${ifenabled}" = "0" ] && return
|
||||
[ "${enabled}" = "0" ] && return
|
||||
[ -z "${hosts}" ] && return
|
||||
[ -z "${interval_tries}" ] && interval_tries=1
|
||||
|
||||
procd_open_instance
|
||||
|
@ -121,7 +122,7 @@ _launch_shadowsocks_tracker() {
|
|||
local disabled
|
||||
config_get disabled "$1" disabled 0
|
||||
|
||||
[ "$enabled" = "0" ] || [ "$disabled" = "1" ] && return
|
||||
[ "$enabled" = "0" ] || [ "$disabled" = "1" ] || [ -z "$hosts" ] && return
|
||||
|
||||
procd_open_instance
|
||||
# shellcheck disable=SC2086
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue