This commit is contained in:
n 2021-03-08 22:59:04 +01:00
parent 753cdc5ce3
commit 6c37955a4d
Signed by: n
GPG key ID: E96086FC951DAE30

View file

@ -103,7 +103,7 @@ The following miniamlistic script can be used to check for capsule availability
```
#!/bin/sh
errorOutput=$(echo -n "gemini://$1/\r\n" | /path/to/gnutls-cli -p 1965 $1 2>&1 > /dev/null)
errorOutput=$(echo -n "gemini://$1/\r\n" | /path/to/gnutls-cli --port 1965 --tofu $1 2>&1 > /dev/null)
errorCode=$?
if [ $errorCode -gt 0 ]
@ -116,6 +116,8 @@ else
fi
```
Here we use "trust on first use authentication" (--tofu), so don't forget to manually launch gnutls-cli first. And if security is not your primary concern, you can use the more permissive --no-ca-verification flag instead.
# Greetings
Many many thanks to @solene@bsd.network for writing that wonderful little piece of software thas is vger, and @hucste@framapiaf.org for pointing it to me.