From 2e42b0a252416803a90ea232dc94a0a21d5a97e5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 4 Jan 2008 23:01:00 +0000 Subject: Based on Maxim Perenesenko's patch, we now do SOCKS5 operations and let the proxy do the host name resolving and only if --socks5ip (or CURLOPT_SOCKS5_RESOLVE_LOCAL) is used we resolve the host name locally and pass on the IP address only to the proxy. --- include/curl/curl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 396a0e0f2..c1288a7e9 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1172,6 +1172,11 @@ typedef enum { /* set transfer mode (;type=) when doing FTP via an HTTP proxy */ CINIT(PROXY_TRANSFER_MODE, LONG, 166), + /* Set using of SOCKS5 to resolve host names locally instead of sending them + to the proxy to let it resolve them. Valid only if CURLOPT_PROXYTYPE == + CURLPROXY_SOCKS5, otherwise ignored. */ + CINIT(SOCKS5_RESOLVE_LOCAL, LONG, 167), + CURLOPT_LASTENTRY /* the last unused */ } CURLoption; -- cgit v1.2.3