mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-03 13:51:47 -05:00
check_curl: http3 is only available with libcurl 7.66 or later
This commit is contained in:
parent
99206dab7a
commit
684602ddec
1 changed files with 4 additions and 1 deletions
|
|
@ -2049,8 +2049,11 @@ check_curl_config_wrapper process_arguments(int argc, char **argv) {
|
|||
result.config.curl_http_version = CURL_HTTP_VERSION_NONE;
|
||||
#endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 33, 0) */
|
||||
} else if ((strcmp(optarg, "3") == 0)) {
|
||||
// TODO find out which libcurl version starts supporting HTTP 3
|
||||
#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 66, 0)
|
||||
result.config.curl_config.curl_http_version = CURL_HTTP_VERSION_3;
|
||||
#else
|
||||
result.config.curl_http_version = CURL_HTTP_VERSION_NONE;
|
||||
#endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 66, 0) */
|
||||
} else {
|
||||
fprintf(stderr, "unknown http-version parameter: %s\n", optarg);
|
||||
exit(STATE_WARNING);
|
||||
|
|
|
|||
Loading…
Reference in a new issue