Browse Source

Force authorities to vote Exit & Guard for all nodes

Use the new tor TestingDirAuthVoteExit option, and the
TestingDirAuthVoteGuard option, to make all authorities vote all relays
(and authorities) as exits and guards. This ensures that tor's
make test-network will work. But it's a sledgehammer approach.

Requires either the new tor TestingDirAuthVoteExit option, or the
issue-13161-check-torrc-options patch for chutney.
teor 9 years ago
parent
commit
c18823e44b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      torrc_templates/authority.tmpl

+ 10 - 0
torrc_templates/authority.tmpl

@@ -7,3 +7,13 @@ TestingV3AuthInitialVotingInterval 300
 TestingV3AuthInitialVoteDelay 2
 TestingV3AuthInitialDistDelay 2
 TestingV3AuthVotingStartOffset 0
+
+# Work around situations where the Exit and Guard flags aren't being set
+# These flags are set eventually, but it takes ~30 minutes
+# We could be more precise here, but it's easiest just to vote everything
+# Clients are sensible enough to filter out Exits without any exit ports, 
+# and Guards without ORPorts
+# If your tor doesn't recognise TestingDirAuthVoteExit, update your chutney
+# to a version that includes the issue-13161-check-torrc-options features
+TestingDirAuthVoteExit *
+TestingDirAuthVoteGuard *