client-ipv6-only 921 B

1234567891011121314151617181920
  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. Client6 = Node(tag="c", torrc="client-only-v6.tmpl")
  12. # Since only 25% of relays get the guard flag,
  13. # TestingDirAuthVoteGuard * may need to be used in small networks
  14. # The minimum number of authorities/relays/exits is 3, the minimum path length
  15. # But for some reason, Tor wants 4 "acceptable routers" (Tor bug #20071)
  16. NODES = Authority6.getN(3) + ExitRelay6.getN(1) + Client6.getN(1)
  17. ConfigureNodes(NODES)