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

Do not display OMR-Tracker server errors in logs

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-07-29 17:10:37 +02:00
parent e7cf500244
commit 07f35db2d6

View file

@ -31,7 +31,7 @@ _ping_server() {
-w "$OMR_TRACKER_TIMEOUT" \
-c 1 \
-q \
"${host}"
"${host}" 2>&1
) && echo "$ret" | grep -sq " 0% packet loss" && {
server_ping=true
}
@ -48,7 +48,7 @@ _ping_server_intf() {
-c 1 \
-q \
-I "$intf" \
"${host}"
"${host}" 2>&1
)
echo "$ret" | grep -sq " 0% packet loss" && {
server_ping=true