diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-12-18 13:21:58 +0100 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-12-18 13:21:58 +0100 |
commit | 539cb627f71b476eb325ae6fff829b1f360ada00 (patch) | |
tree | 835ebfe1555cb4cd1cca8bc1f134a647632ef89e /src/or/transports.c | |
parent | 960f62bd82c249b456a0aa2e1ae62f68c754aacb (diff) | |
download | tor-539cb627f71b476eb325ae6fff829b1f360ada00.tar.gz tor-539cb627f71b476eb325ae6fff829b1f360ada00.zip |
Server transports should be instructed to bind on INADDR_ANY by default.
Diffstat (limited to 'src/or/transports.c')
-rw-r--r-- | src/or/transports.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/transports.c b/src/or/transports.c index 06bc039f67..104150285e 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -920,13 +920,18 @@ static char * get_bindaddr_for_proxy(const managed_proxy_t *mp) { char *bindaddr = NULL; + char *bindaddr_tmp = NULL; smartlist_t *string_tmp = smartlist_create(); tor_assert(mp->is_server); SMARTLIST_FOREACH_BEGIN(mp->transports_to_launch, char *, t) { - tor_asprintf(&bindaddr, "%s-%s", t, get_bindaddr_for_transport(t)); + bindaddr_tmp = get_bindaddr_for_transport(t); + + tor_asprintf(&bindaddr, "%s-%s", t, bindaddr_tmp); smartlist_add(string_tmp, bindaddr); + + tor_free(bindaddr_tmp); } SMARTLIST_FOREACH_END(t); bindaddr = smartlist_join_strings(string_tmp, ",", 0, NULL); |