]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
List service address in CIRC events for HS-related circs
authorRobert Ransom <rransom.8774@gmail.com>
Fri, 24 Jun 2011 12:18:21 +0000 (05:18 -0700)
committerRobert Ransom <rransom.8774@gmail.com>
Thu, 24 Nov 2011 14:32:55 +0000 (06:32 -0800)
changes/feature2411
src/or/control.c

index e029162164474a7d3e35fe05d4a5113497fe2bc0..633a5cebd3fb4c252bec4b5d8141e9e9ce9633a8 100644 (file)
@@ -4,8 +4,9 @@
       controllers in CIRC events and in replies to 'GETINFO
       circuit-status'.  Implements part of ticket 2411.
 
-    - Report the current state of a hidden-service-related circuit to
-      controllers in CIRC events and in replies to 'GETINFO
-      circuit-status'.  Implements part of ticket 2411.
+    - Report the hidden service address and current state of a
+      hidden-service-related circuit to controllers in CIRC events and
+      in replies to 'GETINFO circuit-status'.  Implements part of
+      ticket 2411.
 
 
index 6b7f9dc7a0bf868ee8707cb2da1ff91218f10611..42eaed2765e82dc245a7febea1af9e362db0fe7b 100644 (file)
@@ -1842,6 +1842,15 @@ circuit_describe_status_for_controller(origin_circuit_t *circ)
     }
   }
 
+  if (circ->rend_data != NULL) {
+    char *rend_query_arg = NULL;
+
+    tor_asprintf(&rend_query_arg, "REND_QUERY=%s",
+                 circ->rend_data->onion_address);
+
+    smartlist_add(descparts, rend_query_arg);
+  }
+
   rv = smartlist_join_strings(descparts, " ", 0, NULL);
 
   SMARTLIST_FOREACH(descparts, char *, cp, tor_free(cp));