From c46eb8b3d04e0243c0c7f6168b07e6ca9af3ffd4 Mon Sep 17 00:00:00 2001 From: nervuri Date: Fri, 24 Sep 2021 09:35:45 +0000 Subject: [PATCH] remove --insecure flag from agunua commands No longer required, since version 1.5. --- get-hosts.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/get-hosts.sh b/get-hosts.sh index deef9ff..1bd129f 100755 --- a/get-hosts.sh +++ b/get-hosts.sh @@ -14,16 +14,14 @@ cd "$(dirname "$0")" || exit # If Agunua is installed, use it. if command -v agunua >/dev/null; then # Using Agunua is more secure, because it does certificate pinning. - # The --insecure option just makes it accept certificates that are - # not signed by a (known) CA. - hosts1=$(agunua --insecure --binary --maximum-time 20 \ + hosts1=$(agunua --binary --maximum-time 20 \ gemini://geminispace.info/known-hosts 2>/dev/null \ | grep "gemini://" | cut -d ' ' -f 3) if [ -z "$hosts1" ]; then >&2 echo "geminispace.info/known-hosts download failed." exit 1 fi - hosts2=$(agunua --insecure --binary --maximum-time 20 \ + hosts2=$(agunua --binary --maximum-time 20 \ gemini://gemini.bortzmeyer.org/software/lupa/lupa-capsules.txt 2>/dev/null) if [ -z "$hosts2" ]; then >&2 echo "lupa-capsules.txt download failed."