git ssb

0+

cel / dillo-gemini



Commit 4e26a3c71dac45ed4a0d0f5d92d82e34526120ed

Use openssl s_client instead of ncat

cel committed on 11/6/2019, 11:47:56 PM
Parent: 41a475909d0d84d1a9949d6212fb39a35f42d881

Files changed

README.mdchanged
gemini.filter.dpichanged
README.mdView
@@ -7,9 +7,9 @@
77 ![Dillo loading gemini://gemini.conman.org/](&Mi6TnZIOeSmIVeI0VbtY3tqvIEcoCrUas2EwwS09sl0=.sha256)
88
99 ## Install
1010
11-dillo-gemini requires `ncat`, which is included in the `nmap` package on Debian.
11 +dillo-gemini requires the `openssl` command-line tool.
1212
1313 This repo is hosted on the [SSB Network][SSB] using [git-ssb][].
1414
1515 ```sh
gemini.filter.dpiView
@@ -119,9 +119,9 @@
119119 host=${hostname%%:*}
120120 port=${hostname##*:}
121121 if [ "$host" = "$port" ]; then port=1965; fi
122122 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" | {
124124 read status meta
125125 send_status_msg "Status: $status"
126126 meta=$(echo "$meta" | sed 's/\s*$//')
127127 case "$status" in

Built with git-ssb-web