diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-24 23:45:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:22 -0500 |
commit | c3faa0ebd55f7de80db1a3aa5e64a79c72708722 (patch) | |
tree | 10528e633805fb1a643440352fd43bf880f38ea6 /src/or/connection_edge.c | |
parent | c64ee7099f32c2630d8ed65febf92357cd5e9487 (diff) | |
download | tor-c3faa0ebd55f7de80db1a3aa5e64a79c72708722.tar.gz tor-c3faa0ebd55f7de80db1a3aa5e64a79c72708722.zip |
Simplest version of server-side IPv6 support (no dns)
This is a relatively simple set of changes: we mostly need to
remove a few "but not for IPv6" changes. We also needed to tweak
the handling of DNS code to generate RESOLVED cells that could get
an IPv6 answer in return.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 9a4f274bb1..d97bea7e66 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2408,6 +2408,9 @@ connection_exit_connect(edge_connection_t *edge_conn) addr = &conn->addr; port = conn->port; + if (tor_addr_family(addr) == AF_INET6) + conn->socket_family = AF_INET6; + log_debug(LD_EXIT,"about to try connecting"); switch (connection_connect(conn, conn->address, addr, port, &socket_error)) { case -1: { |