client-ipv6-only-md 989 B

123456789101112131415161718192021
  1. import os
  2. # By default, Authorities are not configured as exits
  3. Authority6 = Node(tag="a", authority=1, relay=1,
  4. ipv6_addr=os.environ.get('CHUTNEY_LISTEN_ADDRESS_V6',
  5. '[::1]'),
  6. torrc="authority-orport-v6.tmpl")
  7. ExitRelay6 = Node(tag="r", relay=1, exit=1,
  8. ipv6_addr=os.environ.get('CHUTNEY_LISTEN_ADDRESS_V6',
  9. '[::1]'),
  10. torrc="relay-orport-v6-exit.tmpl")
  11. HS = Node(tag="h", hs=1, torrc="hs.tmpl")
  12. Client6 = Node(tag="c", client=1, torrc="client-only-v6-md.tmpl")
  13. # Since only 25% of relays get the guard flag,
  14. # TestingDirAuthVoteGuard * may need to be used in small networks
  15. # The minimum number of authorities/relays/exits is 3, the minimum path length
  16. # But for some reason, Tor wants 4 "acceptable routers" (Tor bug #20071)
  17. NODES = Authority6.getN(3) + ExitRelay6.getN(1) + HS.getN(1) + Client6.getN(1)
  18. ConfigureNodes(NODES)