From 2460a92d838b7dc26f3521da12844a683bc43551 Mon Sep 17 00:00:00 2001 From: tylen Date: Mon, 21 Oct 2024 16:05:26 +0000 Subject: [PATCH] cloudflare: don't send bad ip from curl message to telegram --- services/cloudflare_update_dns | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/cloudflare_update_dns b/services/cloudflare_update_dns index 09a5246..17253d2 100755 --- a/services/cloudflare_update_dns +++ b/services/cloudflare_update_dns @@ -37,10 +37,10 @@ function check_new_ip() { then for (( i=1; i<${#BASH_REMATCH[@]}; ++i )) do - (( ${BASH_REMATCH[$i]} <= 255 )) || { "${SEND_TELEGRAM}" "Bad IP from curl. ${new_ip}" >&2; exit 1; } + (( ${BASH_REMATCH[$i]} <= 255 )) || { info "Bad IP from curl. ${new_ip}"; exit 1; } done else - "${SEND_TELEGRAM}" "Bad IP from curl. ${new_ip}" >&2 + info "Bad IP from curl. ${new_ip}"; exit 1; fi if [[ "${new_ip}" == "${CACHED_PUBLIC_IP}" ]]; then