aboutsummaryrefslogtreecommitdiff
path: root/include/curl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-04 23:01:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-04 23:01:00 +0000
commit2e42b0a252416803a90ea232dc94a0a21d5a97e5 (patch)
treece5c9b3a2e33408a77300563964924a73d6b464b /include/curl
parentfcc485092a09811d5bfed78d13984fed5c31e652 (diff)
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.
Diffstat (limited to 'include/curl')
-rw-r--r--include/curl/curl.h5
1 files changed, 5 insertions, 0 deletions
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=<a|i>) 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;