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/connection_edge.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/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index efaad79b6a..ad0e8c53f7 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2593,7 +2593,7 @@ connection_ap_make_link(connection_t *partner, want_onehop ? "direct" : "anonymized", safe_str_client(address), port); - conn = entry_connection_new(CONN_TYPE_AP, AF_INET); + conn = entry_connection_new(CONN_TYPE_AP, tor_addr_family(&partner->addr)); base_conn = ENTRY_TO_CONN(conn); base_conn->linked = 1; /* so that we can add it safely below. */ @@ -3199,7 +3199,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn) exitconn->_base.state = EXIT_CONN_STATE_OPEN; - dirconn = dir_connection_new(AF_INET); + dirconn = dir_connection_new(tor_addr_family(&exitconn->_base.addr)); tor_addr_copy(&dirconn->_base.addr, &exitconn->_base.addr); dirconn->_base.port = 0; |