diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-11-06 10:02:16 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-11-06 13:47:56 -1000 |
commit | 4e26a3c71dac45ed4a0d0f5d92d82e34526120ed (patch) | |
tree | 1b2de3e6fe59fa6c4157d41193288af6fa60355a | |
parent | 41a475909d0d84d1a9949d6212fb39a35f42d881 (diff) |
Use openssl s_client instead of ncat
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | gemini.filter.dpi | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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*$//') |