aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-09 23:06:46 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-09 23:06:46 +0000
commit97373cfa1b4d0f7e26a14f35016758a1f3b58406 (patch)
tree20a7fd692fac6f4bbd89a512393e1fd7f93c3901 /src/hostlist
parent05fca448c7f7d2f01c33a511daa9bf3a52b87cc3 (diff)
downloadgnunet-97373cfa1b4d0f7e26a14f35016758a1f3b58406.tar.gz
gnunet-97373cfa1b4d0f7e26a14f35016758a1f3b58406.zip
-restrict curl accesses to http, disable redirect for http plugins
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/hostlist-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index 7b871963f..e410123f6 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -924,6 +924,8 @@ download_hostlist ()
924 return; 924 return;
925 } 925 }
926 CURL_EASY_SETOPT (curl, CURLOPT_FOLLOWLOCATION, 1); 926 CURL_EASY_SETOPT (curl, CURLOPT_FOLLOWLOCATION, 1);
927 CURL_EASY_SETOPT (curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
928 CURL_EASY_SETOPT (curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
927 CURL_EASY_SETOPT (curl, CURLOPT_MAXREDIRS, 4); 929 CURL_EASY_SETOPT (curl, CURLOPT_MAXREDIRS, 4);
928 /* no need to abort if the above failed */ 930 /* no need to abort if the above failed */
929 CURL_EASY_SETOPT (curl, CURLOPT_URL, current_url); 931 CURL_EASY_SETOPT (curl, CURLOPT_URL, current_url);