diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-27 14:48:23 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-27 14:48:23 +0000 |
commit | 58173ca20e1c2ca78dcb04ae194734079b89166d (patch) | |
tree | 69af5929749feebaff56ffa4964b57de5e8c979f /gg.1 | |
parent | 286c4f40a54be609d0c03e8229826d9fee5ad8d3 (diff) |
customizable servname & verbose + misc tweaks
* add -H for explicit servname (for SNI)
* add -v to print also the request
* misc tweaks: move *flag variables to global scope (initialisation to
0 for free!) and explicit handshake.
Diffstat (limited to 'gg.1')
-rw-r--r-- | gg.1 | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -20,7 +20,8 @@ .Sh SYNOPSIS .Nm .Bk -words -.Op Fl 23bchNV +.Op Fl 23bchNVv +.Op Fl H Ar hostname .Ar IRI .Ek .Sh DESCRIPTION @@ -38,6 +39,11 @@ Use only TLSv1.3. Print only the body of the response. .It Fl c Print only the response code. +.It Fl H Ar hostname +Use the given +.Ar hostname +for SNI, instead of the one extracted from the IRI. +The IRI hostname will still be used for the DNS resolution. .It Fl h Print only the response header. .It Fl N @@ -45,6 +51,8 @@ Don't check whether the peer certificate name matches the requested hostname. .It Fl V Only validate the IRI, don't do the Gemini transaction. +.It Fl v +Print also the request. .El .Pp Note that |