← Commit list

e3ed70ce72

Daniel Stenberg
Daniel Stenberg
2026-03-20
SUCCESS Duration: 260s

Subject

url: use the socks type for socks proxy

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/url.c+3 -3
@@ -2248,16 +2248,16 @@ static CURLcode create_conn_helper_init_proxy(struct Curl_easy *data,
* connection that may exist registered to the same proxy host.
***********************************************************************/
if(proxy || socksproxy) {
- long ptype = conn->http_proxy.proxytype;
if(proxy) {
- result = parse_proxy(data, conn, proxy, ptype);
+ result = parse_proxy(data, conn, proxy, conn->http_proxy.proxytype);
Curl_safefree(proxy); /* parse_proxy copies the proxy string */
if(result)
goto out;
}
if(socksproxy) {
- result = parse_proxy(data, conn, socksproxy, ptype);
+ result = parse_proxy(data, conn, socksproxy,
+ conn->socks_proxy.proxytype);
/* parse_proxy copies the socks proxy string */
Curl_safefree(socksproxy);
if(result)