[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33077 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33077 - gnunet/src/hostlist |
Date: |
Tue, 15 Apr 2014 10:57:16 +0200 |
Author: wachs
Date: 2014-04-15 10:57:15 +0200 (Tue, 15 Apr 2014)
New Revision: 33077
Modified:
gnunet/src/hostlist/hostlist-client.c
Log:
using proxy settings
Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c 2014-04-14 23:49:17 UTC (rev
33076)
+++ gnunet/src/hostlist/hostlist-client.c 2014-04-15 08:57:15 UTC (rev
33077)
@@ -926,7 +926,14 @@
gettext_noop ("# hostlist downloads initiated"), 1,
GNUNET_NO);
if (proxy != NULL)
+ {
CURL_EASY_SETOPT (curl, CURLOPT_PROXY, proxy);
+ CURL_EASY_SETOPT (curl, CURLOPT_PROXYTYPE, proxy_type);
+ if (NULL != proxy_username)
+ CURL_EASY_SETOPT (curl, CURLOPT_PROXYUSERNAME, proxy_username);
+ if (NULL != proxy_password)
+ CURL_EASY_SETOPT (curl, CURLOPT_PROXYPASSWORD, proxy_password);
+ }
download_pos = 0;
stat_bogus_url = 0;
CURL_EASY_SETOPT (curl, CURLOPT_WRITEFUNCTION, &callback_download);
@@ -1499,6 +1506,7 @@
{
GNUNET_STRINGS_utf8_toupper (proxytype_str, proxytype_str);
+ proxy_type = CURLPROXY_HTTP;
if (0 == strcmp(proxytype_str, "HTTP"))
proxy_type = CURLPROXY_HTTP;
else if (0 == strcmp(proxytype_str, "HTTP_1_0"))
@@ -1509,7 +1517,7 @@
proxy_type = CURLPROXY_SOCKS5;
else if (0 == strcmp(proxytype_str, "SOCKS4A"))
proxy_type = CURLPROXY_SOCKS4A;
- else if (0 == strcmp(proxytype_str, "SOCKS5_HOSTNAME "))
+ else if (0 == strcmp(proxytype_str, "SOCKS5_HOSTNAME"))
proxy_type = CURLPROXY_SOCKS5_HOSTNAME ;
else
{
@@ -1527,9 +1535,6 @@
return GNUNET_SYSERR;
}
-
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Found proxy type: `%s'\n", proxy_type);
}
GNUNET_free_non_null (proxytype_str);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33077 - gnunet/src/hostlist,
gnunet <=