summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostyantyn Ovechko <fastinetserver@gmail.com>2010-07-28 02:16:04 +0300
committerKostyantyn Ovechko <fastinetserver@gmail.com>2010-07-28 02:16:04 +0300
commit9856167583bac5fc114ce5689a7b881d6bcfdbd0 (patch)
tree8dfbb2f1aaaa2fdea122bbed48f8c070288bced0 /segget/segment.cpp
parentAdd options FOLLOW_LOCATION and MAX_REDIRS to network#.conf files (diff)
downloadidfetch-9856167583bac5fc114ce5689a7b881d6bcfdbd0.tar.gz
idfetch-9856167583bac5fc114ce5689a7b881d6bcfdbd0.tar.bz2
idfetch-9856167583bac5fc114ce5689a7b881d6bcfdbd0.zip
Add option proxy_type to network#.conf files
SYNOPSIS: PROXY_TYPE = 0 | 1 | 2 | 3 | 4 | 5 0 - HTTP 1 - HTTP_1_0 2 - SOCKS4 3 - SOCKS4a 4 - SOCKS5 5 - SOCKS5_HOSTNAME Specify type of the proxy. Default: proxy_type=0
Diffstat (limited to 'segget/segment.cpp')
-rw-r--r--segget/segment.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/segget/segment.cpp b/segget/segment.cpp
index 5201c54..100d8ca 100644
--- a/segget/segment.cpp
+++ b/segget/segment.cpp
@@ -152,6 +152,7 @@ int Tsegment::add_easy_handle_to_multi(CURLM *cm, uint network_num){
if (network_array[network_num].proxy_password!="none")
curl_easy_setopt(easyhandle, CURLOPT_PROXYPASSWORD, network_array[network_num].proxy_password.c_str());
}
+ curl_easy_setopt(easyhandle, CURLOPT_PROXYTYPE, network_array[network_num].proxy_type);
}
if ((network_array[network_num].bind_interface!="none")