diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-10-16 22:58:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-10-16 22:59:33 +0200 |
commit | 21a1184961357f8b90a2e28c9ddc6150a889a37c (patch) | |
tree | efa5d5e5312cb4ac8af55080436b6b29a456159b /src/cli.c | |
parent | 666f53c231e88c4173cd285ab44897c88fbab866 (diff) | |
download | gnutls-21a1184961357f8b90a2e28c9ddc6150a889a37c.tar.gz |
tools: when the starttls-proto is specified automatically detect the port if not given
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1528,7 +1528,10 @@ static void cmd_parser(int argc, char **argv) if (HAVE_OPT(PORT)) { service = OPT_ARG(PORT); } else { - service = "443"; + if (HAVE_OPT(STARTTLS_PROTO)) + service = starttls_proto_to_service(OPT_ARG(STARTTLS_PROTO)); + else + service = "443"; } record_max_size = OPT_VALUE_RECORDSIZE; |