bridges+ipv6 957 B

1234567891011121314151617181920
  1. Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
  2. Relay = Node(tag="r", relay=1, torrc="relay.tmpl")
  3. Client = Node(tag="c", torrc="client.tmpl")
  4. BridgeAuthority = Node(tag="ba", authority=1, bridgeauthority=1,
  5. relay=1, torrc="bridgeauthority.tmpl")
  6. Bridge = Node(tag="br", bridge=1, relay=1, torrc="bridge.tmpl")
  7. BridgeIPv6 = Node(tag="br", bridge=1, relay=1, ipv6_addr="[::1]", torrc="bridge-v6.tmpl")
  8. BridgeClient = Node(tag="bc", torrc="bridgeclient.tmpl")
  9. # We need 8 authorities/relays/exits to ensure at least 2 get the guard flag in 0.2.6
  10. # We put the IPv6 bridge first to ensure that clients try IPv6 before IPv4
  11. # Unfortunately, this does not prevent clients falling back to IPv4
  12. # TODO: create test for IPv6 only
  13. NODES = Authority.getN(3) + BridgeAuthority.getN(1) + \
  14. Relay.getN(4) + \
  15. BridgeIPv6.getN(1) + Bridge.getN(1) + \
  16. Client.getN(1) + BridgeClient.getN(1)
  17. ConfigureNodes(NODES)