diff options
author | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-28 00:59:38 +0300 |
---|---|---|
committer | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-28 00:59:38 +0300 |
commit | 8b1b8cb5078d78856a4ea2a53d2cf86b202c851b (patch) | |
tree | 0725bad255fa3a4e3426f392f3e19b81cf429c77 /segget/segment.cpp | |
parent | Add segments counters to stats and tui. (diff) | |
download | idfetch-8b1b8cb5078d78856a4ea2a53d2cf86b202c851b.tar.gz idfetch-8b1b8cb5078d78856a4ea2a53d2cf86b202c851b.tar.bz2 idfetch-8b1b8cb5078d78856a4ea2a53d2cf86b202c851b.zip |
Add CoralCDN support
Add option to network#.conf files:
[mode]
Diffstat (limited to 'segget/segment.cpp')
-rw-r--r-- | segget/segment.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/segget/segment.cpp b/segget/segment.cpp index d5c2ea3..3dcfa7d 100644 --- a/segget/segment.cpp +++ b/segget/segment.cpp @@ -136,6 +136,9 @@ int Tsegment::add_easy_handle_to_multi(CURLM *cm, uint network_num){ } curl_easy_setopt(easyhandle, CURLOPT_USERAGENT, network_array[network_num].user_agent.c_str()); + curl_easy_setopt(easyhandle, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt(easyhandle, CURLOPT_MAXREDIRS, 5); + if (network_array[network_num].proxy_off) curl_easy_setopt(easyhandle, CURLOPT_NOPROXY, "*"); else{ |