summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-02-23 17:51:48 -0800
committerGeorge Kadianakis <desnacked@riseup.net>2012-07-03 21:26:03 +0300
commit9dea3a03b925f8cd83f2a975c4d5899f7691252d (patch)
tree9c726de6d4374d403646ff5c1d7647ccea3c82b3 /src/or/router.c
parent4bafe24400fa80d2bfc7c862924d8af04554e002 (diff)
downloadtor-9dea3a03b925f8cd83f2a975c4d5899f7691252d.tar.gz
tor-9dea3a03b925f8cd83f2a975c4d5899f7691252d.zip
Add pluggable transport info to extra-info descriptors.
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 352c456f1f..795afe2b3a 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2344,6 +2344,13 @@ extrainfo_dump_to_string(char **s_out, extrainfo_t *extrainfo,
}
}
+ /* Add information about the pluggable transports we support. */
+ if (options->ServerTransportPlugin) {
+ char *pluggable_transports = pt_get_extra_info_descriptor_string();
+ if (pluggable_transports)
+ smartlist_add(chunks, pluggable_transports);
+ }
+
if (should_record_bridge_info(options) && write_stats_to_extrainfo) {
const char *bridge_stats = geoip_get_bridge_stats_extrainfo(now);
if (bridge_stats) {