summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-11-13 02:39:16 -0500
committerNick Mathewson <nickm@torproject.org>2017-10-24 19:26:24 -0400
commitebab5215252f9fa810ae091c335c5ae6e619faaf (patch)
tree1e4bd4e7751f48dd93d31de404014653a92d8d3b /src/or/or.h
parentfcd5c3144a44f4081e9e7c4336b932e31ae45f77 (diff)
downloadtor-ebab5215252f9fa810ae091c335c5ae6e619faaf.tar.gz
tor-ebab5215252f9fa810ae091c335c5ae6e619faaf.zip
Add new BridgeDistribution config option
Bridge relays can use it to add a "bridge-distribution-request" line to their bridge descriptor, which tells BridgeDB how they'd like their bridge address to be given out. Implements tickets 18329.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 33fe8b96c4..3d61cfa051 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3638,6 +3638,10 @@ typedef struct {
int BridgeAuthoritativeDir; /**< Boolean: is this an authoritative directory
* that aggregates bridge descriptors? */
+ /** If set on a bridge relay, it will include this value on a new
+ * "bridge-distribution-request" line in its bridge descriptor. */
+ char *BridgeDistribution;
+
/** If set on a bridge authority, it will answer requests on its dirport
* for bridge statuses -- but only if the requests use this password. */
char *BridgePassword;