From b76a3a8fac0eb87d7d14ab1b9eaa77247284ad57 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 29 Oct 2022 17:39:30 +0300 Subject: [PATCH] Do not transmit whole pile of data --- helper/http | 2 +- helper/https-cert | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/http b/helper/http index a917d21..1c5377a 100755 --- a/helper/http +++ b/helper/http @@ -1,7 +1,7 @@ #!/bin/sh -e bad=0 -curl --max-time 60 --verbose "$1" >state/curl-out 2>&1 || bad=1 +curl --range 0-100 --max-time 60 --verbose "$1" >state/curl-out 2>&1 || bad=1 grep -q "$togrep" state/curl-out || bad=1 if [ "$bad" -eq 1 ] ; then cat state/curl-out diff --git a/helper/https-cert b/helper/https-cert index 2f3a0b8..573b617 100755 --- a/helper/https-cert +++ b/helper/https-cert @@ -1,7 +1,7 @@ #!/bin/sh -e bad=0 -curl --max-time 60 --verbose "$1" >/dev/null 2>state/curl-out || bad=1 +curl --range 0-100 --max-time 60 --verbose "$1" >/dev/null 2>state/curl-out || bad=1 grep -q "subject:.*CN=$2" state/curl-out || bad=1 if [ "$bad" -eq 1 ] ; then cat state/curl-out -- 2.44.0