From 18d3aebbb66f453d5b57bb28dd284508bb938332 Mon Sep 17 00:00:00 2001 From: Jeff Burdges Date: Fri, 31 Jul 2015 12:22:34 +0000 Subject: Build socks.c and call it from client.c It still won't work yet, now debugging. --- src/util/client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util/client.c') 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 @@ #include "platform.h" #include "gnunet_protocols.h" #include "gnunet_util_lib.h" +#include "gnunet_socks.h" /** @@ -339,6 +340,10 @@ do_connect (const char *service_name, char *hostname; unsigned long long port; + /* Never use a local source if a proxy is configured */ + if (GNUNET_YES == GNUNET_SOCKS_check_service (service_name,cfg)) + return GNUNET_SOCKS_do_connect (service_name,cfg); + connection = NULL; if (0 == (attempt % 2)) { -- cgit v1.2.3