blog #1

Merged
n merged 5 commits from blog into master 2021-03-08 23:23:01 +01:00
Showing only changes of commit 6c37955a4d - Show all commits

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.