aboutsummaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-04-27 14:44:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-04-28 15:08:09 +0200
commit3b1b26578f7b21e2bfca1d1738aa77a44e11e111 (patch)
tree8401506df2650608c1de9c919e31f73f46ad498d /lib/socks.c
parent2cbe885c1a4d4f9b64fa0f41582e9d1b68affa25 (diff)
proxy: allow socks:// prefix in proxy string
Inspired by a patch from OB.Conseil. Added test case 708 to verify.
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socks.c b/lib/socks.c
index 14f8a2db2..d9ad9a7de 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -385,7 +385,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
curl_socket_t sock = conn->sock[sockindex];
struct SessionHandle *data = conn->data;
long timeout;
- bool socks5_resolve_local = (bool)(data->set.proxytype == CURLPROXY_SOCKS5);
+ bool socks5_resolve_local = (bool)(conn->proxytype == CURLPROXY_SOCKS5);
const size_t hostname_len = strlen(hostname);
ssize_t packetsize = 0;