diff options
| author | Michael Biebl <biebl@debian.org> | 2023-01-26 21:20:15 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2023-01-26 21:20:15 +0100 |
| commit | 82358c92f879a7b8ca976c8a88e48bf207285764 (patch) | |
| tree | d9fbd08d723b83989e645d040ba08631bd1d3b9b /src/core/nm-connectivity.c | |
| parent | ac445e26cbdad011277f8822e0fc468ab1a6c61f (diff) | |
| parent | 40ec077ea305994c1fc2130add6787ca0c73e2c6 (diff) | |
Update upstream source from tag 'upstream/1.40.12'
Update to upstream version '1.40.12' with Debian dir 332a096a3294bbc50a4ddc486b2bae91c166f979
Diffstat (limited to 'src/core/nm-connectivity.c')
| -rw-r--r-- | src/core/nm-connectivity.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/nm-connectivity.c b/src/core/nm-connectivity.c index cd30853d..c0e77e35 100644 --- a/src/core/nm-connectivity.c +++ b/src/core/nm-connectivity.c @@ -767,7 +767,13 @@ do_curl_request(NMConnectivityCheckHandle *cb_data, const char *hosts) curl_easy_setopt(ehandle, CURLOPT_INTERFACE, cb_data->ifspec); curl_easy_setopt(ehandle, CURLOPT_RESOLVE, cb_data->concheck.hosts); curl_easy_setopt(ehandle, CURLOPT_IPRESOLVE, resolve); + +#if LIBCURL_VERSION_NUM >= 0x075500 /* libcurl 7.85.0 */ + curl_easy_setopt(ehandle, CURLOPT_PROTOCOLS_STR, "HTTP,HTTPS"); +#else curl_easy_setopt(ehandle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); +#endif + if (_LOGT_ENABLED() && easy_debug_enabled()) { curl_easy_setopt(ehandle, CURLOPT_DEBUGFUNCTION, easy_debug_cb); curl_easy_setopt(ehandle, CURLOPT_DEBUGDATA, cb_data); |