diff options
author | Case Duckworth | 2020-06-07 23:26:28 -0500 |
---|---|---|
committer | Case Duckworth | 2020-06-07 23:26:28 -0500 |
commit | d9bc3e0109404d1bf637706496052f6569794742 (patch) | |
tree | 200fa1eb3d16c11dcfd056d7d7b3fe816243db1d | |
parent | Fix makefile (diff) | |
download | bollux-d9bc3e0109404d1bf637706496052f6569794742.tar.gz bollux-d9bc3e0109404d1bf637706496052f6569794742.zip |
Add -servername to openssl command
-rwxr-xr-x | bollux | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bollux b/bollux index 63e2afb..7aa2de8 100755 --- a/bollux +++ b/bollux | |||
@@ -365,6 +365,7 @@ gemini_request() { # gemini_request URL | |||
365 | server="${server%%/*}" | 365 | server="${server%%/*}" |
366 | 366 | ||
367 | ssl_cmd=(openssl s_client -crlf -quiet -connect "$server:$port") | 367 | ssl_cmd=(openssl s_client -crlf -quiet -connect "$server:$port") |
368 | ssl_cmd+=(-servername "$server") # SNI | ||
368 | # disable old TLS/SSL versions | 369 | # disable old TLS/SSL versions |
369 | ssl_cmd+=(-no_ssl3 -no_tls1 -no_tls1_1) | 370 | ssl_cmd+=(-no_ssl3 -no_tls1 -no_tls1_1) |
370 | 371 | ||