aboutsummaryrefslogtreecommitdiff
path: root/src/util/client.c
diff options
context:
space:
mode:
authorJeff Burdges <burdges@gnunet.org>2015-07-31 12:22:34 +0000
committerJeff Burdges <burdges@gnunet.org>2015-07-31 12:22:34 +0000
commit18d3aebbb66f453d5b57bb28dd284508bb938332 (patch)
tree0172e4c773ed149d934d1554bb132a19ae92e662 /src/util/client.c
parent56349f844b7e04b352c9baeb03e96eeaae54efd2 (diff)
downloadgnunet-18d3aebbb66f453d5b57bb28dd284508bb938332.tar.gz
gnunet-18d3aebbb66f453d5b57bb28dd284508bb938332.zip
Build socks.c and call it from client.c
It still won't work yet, now debugging.
Diffstat (limited to 'src/util/client.c')
-rw-r--r--src/util/client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/client.c b/src/util/client.c
index f74b8b161..88c43d4a1 100644
--- a/src/util/client.c
+++ b/src/util/client.c
@@ -29,6 +29,7 @@
29#include "platform.h" 29#include "platform.h"
30#include "gnunet_protocols.h" 30#include "gnunet_protocols.h"
31#include "gnunet_util_lib.h" 31#include "gnunet_util_lib.h"
32#include "gnunet_socks.h"
32 33
33 34
34/** 35/**
@@ -339,6 +340,10 @@ do_connect (const char *service_name,
339 char *hostname; 340 char *hostname;
340 unsigned long long port; 341 unsigned long long port;
341 342
343 /* Never use a local source if a proxy is configured */
344 if (GNUNET_YES == GNUNET_SOCKS_check_service (service_name,cfg))
345 return GNUNET_SOCKS_do_connect (service_name,cfg);
346
342 connection = NULL; 347 connection = NULL;
343 if (0 == (attempt % 2)) 348 if (0 == (attempt % 2))
344 { 349 {