aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xgemini.filter.dpi2
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*$//')