mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:03:32 +03:00
websockets: auto-tunnel through http proxy
When using a ws: or wss: url with a http proxy, automatically switch to tunneling operation mode. Add test_20_10 to check. Fixes #21663 Closes #21691
This commit is contained in:
parent
b158d1c9f7
commit
77e4e5b86d
4 changed files with 25 additions and 5 deletions
|
|
@ -153,7 +153,8 @@ const struct Curl_scheme Curl_scheme_https = {
|
|||
CURLPROTO_HTTPS, /* protocol */
|
||||
CURLPROTO_HTTP, /* family */
|
||||
PROTOPT_SSL | PROTOPT_CREDSPERREQUEST | PROTOPT_ALPN | /* flags */
|
||||
PROTOPT_USERPWDCTRL | PROTOPT_CONN_REUSE,
|
||||
PROTOPT_USERPWDCTRL | PROTOPT_CONN_REUSE |
|
||||
PROTOPT_HTTP_PROXY_TUNNEL,
|
||||
PORT_HTTPS, /* defport */
|
||||
};
|
||||
|
||||
|
|
@ -442,7 +443,7 @@ const struct Curl_scheme Curl_scheme_ws = {
|
|||
CURLPROTO_WS, /* protocol */
|
||||
CURLPROTO_HTTP, /* family */
|
||||
PROTOPT_CREDSPERREQUEST | /* flags */
|
||||
PROTOPT_USERPWDCTRL,
|
||||
PROTOPT_USERPWDCTRL | PROTOPT_HTTP_PROXY_TUNNEL,
|
||||
PORT_HTTP /* defport */
|
||||
};
|
||||
|
||||
|
|
@ -457,7 +458,7 @@ const struct Curl_scheme Curl_scheme_wss = {
|
|||
CURLPROTO_WSS, /* protocol */
|
||||
CURLPROTO_HTTP, /* family */
|
||||
PROTOPT_SSL | PROTOPT_CREDSPERREQUEST | /* flags */
|
||||
PROTOPT_USERPWDCTRL,
|
||||
PROTOPT_USERPWDCTRL | PROTOPT_HTTP_PROXY_TUNNEL,
|
||||
PORT_HTTPS /* defport */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue