check_gemini.sh: fix max_request error on vger servers

This commit is contained in:
n 2021-07-03 12:07:02 +02:00
parent 5d2e705d42
commit abf58587ec
Signed by: n
GPG Key ID: E96086FC951DAE30
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
TLS_CLIENT="/usr/local/bin/gnutls-cli -p 1965"
TLS_CLIENT="/usr/local/bin/gnutls-cli --port 1965 --no-ca-verification --crlf"
if [ "$1" = "-h" ] || [ "$1" = "--help" ]
then
@ -9,7 +9,7 @@ then
return 0
fi
errorOutput=$(echo -n "gemini://$1/\r\n" | ${TLS_CLIENT} $1 2>&1 > /dev/null)
errorOutput=$(echo "gemini://$1/" | ${TLS_CLIENT} $1 2>&1 > /dev/null)
errorCode=$?
if [ $errorCode -gt 0 ]