From 4e26a3c71dac45ed4a0d0f5d92d82e34526120ed Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 6 Nov 2019 10:02:16 -1000 Subject: [PATCH] Use openssl s_client instead of ncat --- README.md | 2 +- gemini.filter.dpi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a18afcc..3f19563 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Install -dillo-gemini requires `ncat`, which is included in the `nmap` package on Debian. +dillo-gemini requires the `openssl` command-line tool. This repo is hosted on the [SSB Network][SSB] using [git-ssb][]. diff --git a/gemini.filter.dpi b/gemini.filter.dpi index 9305067..3400c45 100755 --- a/gemini.filter.dpi +++ b/gemini.filter.dpi @@ -120,7 +120,7 @@ serve_gemini() { port=${hostname##*:} if [ "$host" = "$port" ]; then port=1965; fi send_status_msg "Sending request..." - printf "%s\r\n" "$url" | ncat --no-shutdown --ssl "$host" "$port" | { + printf "%s\r\n" "$url" | openssl s_client -verify_quiet -quiet "$host:$port" | { read status meta send_status_msg "Status: $status" meta=$(echo "$meta" | sed 's/\s*$//')