From c30c9f912532d78799408f46de2ed2c5db9a216f Mon Sep 17 00:00:00 2001 From: fs carmen Date: Fri, 11 Jul 2025 18:10:04 +0000 Subject: [PATCH] Replace the script execution count tracking service. --- menu.sh | 2 +- warp-go.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.sh b/menu.sh index fb4d093..ad2ae92 100644 --- a/menu.sh +++ b/menu.sh @@ -426,7 +426,7 @@ statistics_of_run-times() { local UPDATE_OR_GET=$1 local SCRIPT=$2 if grep -q 'update' <<< "$UPDATE_OR_GET"; then - { wget -qO- --timeout=3 "https://stat-api.netlify.app/updateStats?script=${SCRIPT}" > /tmp/statistics; }& + { wget --no-check-certificate -qO- --timeout=3 "http://stat.cloudflare.now.cc:4000/api/updateStats?script=${SCRIPT}" > /tmp/statistics; }& elif grep -q 'get' <<< "$UPDATE_OR_GET"; then [ -s /tmp/statistics ] && [[ $(cat /tmp/statistics) =~ \"todayCount\":([0-9]+),\"totalCount\":([0-9]+) ]] && local TODAY="${BASH_REMATCH[1]}" && local TOTAL="${BASH_REMATCH[2]}" && rm -f /tmp/statistics info " $(text 41) " diff --git a/warp-go.sh b/warp-go.sh index 2e2c403..3dc8256 100644 --- a/warp-go.sh +++ b/warp-go.sh @@ -262,7 +262,7 @@ statistics_of_run-times() { local UPDATE_OR_GET=$1 local SCRIPT=$2 if grep -q 'update' <<< "$UPDATE_OR_GET"; then - { wget -qO- --timeout=3 "https://stat-api.netlify.app/updateStats?script=${SCRIPT}" > /tmp/statistics; }& + { wget --no-check-certificate -qO- --timeout=3 "http://stat.cloudflare.now.cc:4000/api/updateStats?script=${SCRIPT}" > /tmp/statistics; }& elif grep -q 'get' <<< "$UPDATE_OR_GET"; then [ -s /tmp/statistics ] && [[ $(cat /tmp/statistics) =~ \"todayCount\":([0-9]+),\"totalCount\":([0-9]+) ]] && TODAY="${BASH_REMATCH[1]}" && TOTAL="${BASH_REMATCH[2]}" && rm -f /tmp/statistics fi