summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-14 22:20:01 -0500
committerNick Mathewson <nickm@torproject.org>2012-11-14 23:16:57 -0500
commit50af1087c4e92dfb4a30ddce4f6046970d6108e2 (patch)
tree28deaeb69f56840e685938f397a7d77ef6497b6d /src/or
parent4db49f2b27be858fccfc646cb6ce11e9b2cb98d4 (diff)
downloadtor-50af1087c4e92dfb4a30ddce4f6046970d6108e2.tar.gz
tor-50af1087c4e92dfb4a30ddce4f6046970d6108e2.zip
Accept reverse resolve requests for IPv6 addresses
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index dc58a0e709..426b993e58 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1879,7 +1879,7 @@ connection_ap_handshake_send_resolve(entry_connection_t *ap_conn)
/* We're doing a reverse lookup. The input could be an IP address, or
* could be an .in-addr.arpa or .ip6.arpa address */
- r = tor_addr_parse_PTR_name(&addr, a, AF_INET, 1);
+ r = tor_addr_parse_PTR_name(&addr, a, AF_UNSPEC, 1);
if (r <= 0) {
log_warn(LD_APP, "Rejecting ill-formed reverse lookup of %s",
safe_str_client(a));