mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Merge branch 'maint-0.3.0' into maint-0.3.1
This commit is contained in:
commit
7358559524
2 changed files with 15 additions and 0 deletions
6
changes/bug18329-minimal
Normal file
6
changes/bug18329-minimal
Normal file
|
@ -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.
|
||||
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue