浏览代码

Simple configuration for a mixed-version network

Nick Mathewson 14 年之前
父节点
当前提交
c8ce8fbd67
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      networks/mixed

+ 14 - 0
networks/mixed

@@ -0,0 +1,14 @@
+OLD_TOR="tor-stable"
+
+Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
+OldAuthority = Node(tag="aOLD", authority=1, relay=1, torrc="authority.tmpl",
+	     tor=OLD_TOR)
+Relay = Node(tag="r", relay=1, torrc="relay.tmpl")
+OldRelay = Node(tag="rOLD", relay=1, torrc="relay.tmpl", tor=OLD_TOR)
+Client = Node(tag="c", torrc="client.tmpl")
+OldClient = Node(tag="cOLD", torrc="client.tmpl", tor=OLD_TOR)
+
+NODES = (Authority.getN(2) + OldAuthority.getN(2) + OldRelay.getN(3) +
+      Relay.getN(3) + Client.getN(2) + OldClient.getN(2))
+
+ConfigureNodes(NODES)