summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-18 11:03:16 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-18 11:03:16 -0500
commite5cf65e8ea76cfb821a3dc0ac1b7eebaba41584a (patch)
tree8e671b26e29f48c6328187b78559830d9a352086
parentb84815881f92a0a301a0e7b54fcc685b950a6845 (diff)
parent53c3174ee43c3f54f8180be8256180f6f0d24c0d (diff)
downloadtor-e5cf65e8ea76cfb821a3dc0ac1b7eebaba41584a.tar.gz
tor-e5cf65e8ea76cfb821a3dc0ac1b7eebaba41584a.zip
Merge branch 'maint-0.2.9' into release-0.2.9
-rw-r--r--changes/bug18329-minimal6
-rw-r--r--src/or/router.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/changes/bug18329-minimal b/changes/bug18329-minimal
new file mode 100644
index 0000000000..804c4e8dd1
--- /dev/null
+++ b/changes/bug18329-minimal
@@ -0,0 +1,6 @@
+ o Minor features (bridge):
+ - Bridges now include notice in their descriptors that they are bridges,
+ and notice of their distribution status, based on their publication
+ settings. Implements ticket 18329. For more fine-grained control of
+ how a bridge is distributed, upgrade to 0.3.2.x or later.
+
diff --git a/src/or/router.c b/src/or/router.c
index 6d3a32a60c..aca8040a69 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2867,6 +2867,15 @@ router_dump_router_to_string(routerinfo_t *router,
smartlist_add_asprintf(chunks, "contact %s\n", ci);
}
+ if (options->BridgeRelay) {
+ const char *bd;
+ if (options->PublishServerDescriptor_ & BRIDGE_DIRINFO)
+ bd = "any";
+ else
+ bd = "none";
+ smartlist_add_asprintf(chunks, "bridge-distribution-request %s\n", bd);
+ }
+
if (router->onion_curve25519_pkey) {
char kbuf[128];
base64_encode(kbuf, sizeof(kbuf),