From 92f0cfb1c6abc4e933cefdc31bd954972343bddf Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 6 Oct 2022 10:02:41 +0200 Subject: [PATCH] Use Proxy --- lib/monitoring.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/monitoring.sh b/lib/monitoring.sh index e2954a5..75e62af 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -35,8 +35,8 @@ function hc_send(){ if [ -n "$2" ]; then MSG="$2\n\nDocker stats: $UPTIME" - echo -e "$MSG" | curl -s -o /dev/null -X POST --data-binary @- "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" + echo -e "$MSG" | https_proxy=$HTTPS_PROXY_URL curl -s -o /dev/null -X POST --data-binary @- "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" else - curl -s -o /dev/null "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" + https_proxy=$HTTPS_PROXY_URL curl -s -o /dev/null "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1" fi }