mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
set ssl_version to CURL_SSLVERSION_DEFAULT and not CURL_SSLVERSION_TLSv1_0
(since curl 7.56.1 we get an illegal argument error otherwise)
This commit is contained in:
parent
8a5b49ec36
commit
8120c53f90
1 changed files with 2 additions and 2 deletions
|
|
@ -1320,10 +1320,10 @@ process_arguments (int argc, char **argv)
|
|||
#ifdef LIBCURL_FEATURE_SSL
|
||||
enable_ssl:
|
||||
use_ssl = TRUE;
|
||||
/* ssl_version initialized to CURL_SSLVERSION_TLSv1_0 as a default.
|
||||
/* ssl_version initialized to CURL_SSLVERSION_DEFAULT as a default.
|
||||
* Only set if it's non-zero. This helps when we include multiple
|
||||
* parameters, like -S and -C combinations */
|
||||
ssl_version = CURL_SSLVERSION_TLSv1_0;
|
||||
ssl_version = CURL_SSLVERSION_DEFAULT;
|
||||
if (c=='S' && optarg != NULL) {
|
||||
char *plus_ptr = strchr(optarg, '+');
|
||||
if (plus_ptr) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue