blog #1
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue