check_gemini.sh: fix max_request error on vger servers
This commit is contained in:
parent
5d2e705d42
commit
abf58587ec
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/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" ]
|
if [ "$1" = "-h" ] || [ "$1" = "--help" ]
|
||||||
then
|
then
|
||||||
|
@ -9,7 +9,7 @@ then
|
||||||
return 0
|
return 0
|
||||||
fi
|
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=$?
|
errorCode=$?
|
||||||
|
|
||||||
if [ $errorCode -gt 0 ]
|
if [ $errorCode -gt 0 ]
|
||||||
|
|
Loading…
Reference in a new issue