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

Fix omr-tracker-server

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-19 11:48:08 +01:00
parent 2a13fc8e50
commit bc8582e746

View file

@ -40,8 +40,8 @@ _check_server() {
_check_server_intf() {
local host=$1
local port=$2
local k=0
for intf in $(multipath | awk '/default/ {print $1}'); do
local k=0
while [ "$server_ping" = false ] && [ "$k" -le "$retry" ]; do
ret=$(curl \
--max-time "$OMR_TRACKER_TIMEOUT" \
@ -52,7 +52,6 @@ _check_server_intf() {
)
[ -n "$ret" ] && {
server_ping=true
return
}
k=$((k+1))
sleep "${intervaltries}"