diff options
Diffstat (limited to 'segget/segment.cpp')
-rw-r--r-- | segget/segment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/segget/segment.cpp b/segget/segment.cpp index 3dcfa7d..5201c54 100644 --- a/segget/segment.cpp +++ b/segget/segment.cpp @@ -136,8 +136,8 @@ 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); + curl_easy_setopt(easyhandle, CURLOPT_FOLLOWLOCATION, network_array[network_num].follow_location); + curl_easy_setopt(easyhandle, CURLOPT_MAXREDIRS, network_array[network_num].max_redirs); if (network_array[network_num].proxy_off) curl_easy_setopt(easyhandle, CURLOPT_NOPROXY, "*"); |