Fix a bug that ignored the --ssl-protocol parameter

This commit is contained in:
Muzaffar Auhammud 2018-07-12 21:34:07 +04:00
parent b6d6b5f19c
commit e57dfc478b

View File

@ -668,6 +668,8 @@ main(int argc, char **argv)
param.ssl_ca_path = optarg;
else if (flag == &param.ssl_protocol)
{
param.use_ssl = 1;
if (strcasecmp (optarg, "auto") == 0)
param.ssl_protocol = 0;
#ifndef OPENSSL_NO_SSL2