]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add controller support for listing ExtORPort and HTTPTunnelPorts
authorNick Mathewson <nickm@torproject.org>
Tue, 10 Jul 2018 14:50:43 +0000 (10:50 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 10 Jul 2018 14:50:43 +0000 (10:50 -0400)
Closes ticket 26647.

changes/ticket26647 [new file with mode: 0644]
src/or/control.c

diff --git a/changes/ticket26647 b/changes/ticket26647
new file mode 100644 (file)
index 0000000..1c2e917
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features (controller):
+    - The control port now exposes the list of HTTPTunnelPorts and
+      ExtOrPorts via GETINFO net/listeners/httptunnel and net/listeners/extor
+      respectively.  Closes ticket 26647.
index 202366aaecdc065e0272c137841144445e9d1cc6..3609210b9541519d297aff1c3ebf09d11917536c 100644 (file)
@@ -1848,6 +1848,8 @@ getinfo_helper_listeners(control_connection_t *control_conn,
 
   if (!strcmp(question, "net/listeners/or"))
     type = CONN_TYPE_OR_LISTENER;
+  else if (!strcmp(question, "net/listeners/extor"))
+    type = CONN_TYPE_EXT_OR_LISTENER;
   else if (!strcmp(question, "net/listeners/dir"))
     type = CONN_TYPE_DIR_LISTENER;
   else if (!strcmp(question, "net/listeners/socks"))
@@ -1856,6 +1858,8 @@ getinfo_helper_listeners(control_connection_t *control_conn,
     type = CONN_TYPE_AP_TRANS_LISTENER;
   else if (!strcmp(question, "net/listeners/natd"))
     type = CONN_TYPE_AP_NATD_LISTENER;
+  else if (!strcmp(question, "net/listeners/httptunnel"))
+    type = CONN_TYPE_AP_HTTP_CONNECT_LISTENER;
   else if (!strcmp(question, "net/listeners/dns"))
     type = CONN_TYPE_AP_DNS_LISTENER;
   else if (!strcmp(question, "net/listeners/control"))
@@ -7318,4 +7322,3 @@ control_testing_set_global_event_mask(uint64_t mask)
   global_event_mask = mask;
 }
 #endif /* defined(TOR_UNIT_TESTS) */
-