Commit 4e26a3c71dac45ed4a0d0f5d92d82e34526120ed
Use openssl s_client instead of ncat
cel committed on 11/6/2019, 11:47:56 PMParent: 41a475909d0d84d1a9949d6212fb39a35f42d881
Files changed
README.md | changed |
gemini.filter.dpi | changed |
README.md | ||
---|---|---|
@@ -7,9 +7,9 @@ | ||
7 | 7 … | ![Dillo loading gemini://gemini.conman.org/](&Mi6TnZIOeSmIVeI0VbtY3tqvIEcoCrUas2EwwS09sl0=.sha256) |
8 | 8 … | |
9 | 9 … | ## Install |
10 | 10 … | |
11 | -dillo-gemini requires `ncat`, which is included in the `nmap` package on Debian. | |
11 … | +dillo-gemini requires the `openssl` command-line tool. | |
12 | 12 … | |
13 | 13 … | This repo is hosted on the [SSB Network][SSB] using [git-ssb][]. |
14 | 14 … | |
15 | 15 … | ```sh |
gemini.filter.dpi | ||
---|---|---|
@@ -119,9 +119,9 @@ | ||
119 | 119 … | host=${hostname%%:*} |
120 | 120 … | port=${hostname##*:} |
121 | 121 … | if [ "$host" = "$port" ]; then port=1965; fi |
122 | 122 … | send_status_msg "Sending request..." |
123 | - printf "%s\r\n" "$url" | ncat --no-shutdown --ssl "$host" "$port" | { | |
123 … | + printf "%s\r\n" "$url" | openssl s_client -verify_quiet -quiet "$host:$port" | { | |
124 | 124 … | read status meta |
125 | 125 … | send_status_msg "Status: $status" |
126 | 126 … | meta=$(echo "$meta" | sed 's/\s*$//') |
127 | 127 … | case "$status" in |
Built with git-ssb-web