From 14b84858c062955dc52fbcdcf1146ce0031a95da Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Mon, 17 Dec 2012 15:01:31 +0200 Subject: Send SOCKS arguments when doing SOCKS4. --- src/or/entrynodes.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/or/entrynodes.c') diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c index 63545ce9b8..9e9379c049 100644 --- a/src/or/entrynodes.c +++ b/src/or/entrynodes.c @@ -1751,6 +1751,17 @@ find_transport_by_bridge_addrport(const tor_addr_t *addr, uint16_t port, return 0; } +/** Return a smartlist containing all the SOCKS arguments that we + * should pass to the SOCKS proxy. */ +const smartlist_t * +get_socks_args_by_bridge_addrport(const tor_addr_t *addr, uint16_t port) +{ + bridge_info_t *bridge = get_configured_bridge_by_addr_port_digest(addr, + port, + NULL); + return bridge ? bridge->socks_args : NULL; +} + /** We need to ask bridge for its server descriptor. */ static void launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge) -- cgit v1.2.3-54-g00ecf