mirror of
https://github.com/curl/curl.git
synced 2026-08-10 17:10:54 +03:00
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.
This commit is contained in:
parent
fcc485092a
commit
2e42b0a252
9 changed files with 158 additions and 40 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue