summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-18 11:02:42 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-18 11:02:42 -0500
commit73585595245ac9551a1982575941e954bb870ad0 (patch)
treede79c788fa21d527bf39d33259673d3feba4601d /src
parent1d5e693b63bffe06cb69932176eb0ac4ea4decbd (diff)
parent2d849716df357b570eaf4557638f63a9b2d8a6c1 (diff)
downloadtor-73585595245ac9551a1982575941e954bb870ad0.tar.gz
tor-73585595245ac9551a1982575941e954bb870ad0.zip
Merge branch 'maint-0.3.0' into maint-0.3.1
Diffstat (limited to 'src')
-rw-r--r--src/or/router.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 2491401142..4addb1df34 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2969,6 +2969,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),