diff options
author | George Kadianakis <desnacked@riseup.net> | 2012-12-17 15:01:31 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2013-02-09 16:30:16 +0000 |
commit | 14b84858c062955dc52fbcdcf1146ce0031a95da (patch) | |
tree | 0a0964d1b87ea3bd27b72d5f16381dca16d8929f /src/or/entrynodes.c | |
parent | faf4f6c6d1da54b0a6b0c9946112f2e448867a8f (diff) | |
download | tor-14b84858c062955dc52fbcdcf1146ce0031a95da.tar.gz tor-14b84858c062955dc52fbcdcf1146ce0031a95da.zip |
Send SOCKS arguments when doing SOCKS4.
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r-- | src/or/entrynodes.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <b>bridge</b> for its server descriptor. */ static void launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge) |