diff options
author | Linus Nordberg <linus@nordberg.se> | 2011-11-24 19:01:56 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-30 11:55:46 -0500 |
commit | 529820f8baeaccc6efffde1d9b241eb9f11ce82f (patch) | |
tree | 106eb6b9c3c722f2f326a5ac784adcf1b1b4e118 /src/or/directory.c | |
parent | f89c6196797a6a4b485b3a5eb8788e36eacd9819 (diff) | |
download | tor-529820f8baeaccc6efffde1d9b241eb9f11ce82f.tar.gz tor-529820f8baeaccc6efffde1d9b241eb9f11ce82f.zip |
Use correct address family where necessary for bridges on IPv6.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 43bef5ccc0..65d8d953a6 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -919,7 +919,7 @@ directory_initiate_command_rend(const char *address, const tor_addr_t *_addr, return; } - conn = dir_connection_new(AF_INET); + conn = dir_connection_new(tor_addr_family(&addr)); /* set up conn so it's got all the data we need to remember */ tor_addr_copy(&conn->_base.addr, &addr); |