diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-18 11:02:08 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-11-18 11:02:08 -0500 |
commit | 2d849716df357b570eaf4557638f63a9b2d8a6c1 (patch) | |
tree | 0eb4e91ab45377d0097efef1097fbc50f272071a /src | |
parent | 50fbede4597d143411b3739e88d2c3d8ef457fbd (diff) | |
parent | 53c3174ee43c3f54f8180be8256180f6f0d24c0d (diff) | |
download | tor-2d849716df357b570eaf4557638f63a9b2d8a6c1.tar.gz tor-2d849716df357b570eaf4557638f63a9b2d8a6c1.zip |
Merge branch 'maint-0.2.9' into maint-0.3.0
Diffstat (limited to 'src')
-rw-r--r-- | src/or/router.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index 2707e028b8..b870161d32 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -2881,6 +2881,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), |