mirror of
https://github.com/curl/curl.git
synced 2026-06-18 15:46:16 +03:00
cf-https-connect: do not engage on proxy origin
When talking to a forwarding proxy, do not start HTTPS Eyeballing. We might support this in the future, but for now, the --httpx.x arguments to do not apply to such a setup. Add a test case for forward proxying without use of ALPN. Closes #22033
This commit is contained in:
parent
b9702f8c48
commit
bb72413b03
2 changed files with 13 additions and 5 deletions
|
|
@ -810,7 +810,12 @@ CURLcode Curl_cf_https_setup(struct Curl_easy *data,
|
|||
|
||||
DEBUGASSERT(conn->scheme->protocol == CURLPROTO_HTTPS);
|
||||
|
||||
/* This filter is intended for HTTPS using ALPN and does
|
||||
* not support HTTPS Eyeballing to a proxy. */
|
||||
if((conn->scheme->protocol != CURLPROTO_HTTPS) ||
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
conn->bits.origin_is_proxy ||
|
||||
#endif
|
||||
!conn->bits.tls_enable_alpn)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue