aboutsummaryrefslogtreecommitdiff
path: root/networks/hs-stop-3
diff options
context:
space:
mode:
Diffstat (limited to 'networks/hs-stop-3')
-rw-r--r--networks/hs-stop-335
1 files changed, 35 insertions, 0 deletions
diff --git a/networks/hs-stop-3 b/networks/hs-stop-3
new file mode 100644
index 0000000..9242f77
--- /dev/null
+++ b/networks/hs-stop-3
@@ -0,0 +1,35 @@
+from hs_instance_stop import *
+
+network = Network()
+
+hs_nodes, hs_servers = testing.create_hidden_service(3)
+
+network.add(hs_nodes);
+
+network.add(Node.create(3, {
+ "tag": "a",
+ "authority": 1,
+ "relay": 1,
+ "torrc": "authority.tmpl"
+}))
+
+network.add(Node.create(30, {
+ "tag": "c",
+ "torrc": "client.tmpl"
+}))
+
+network.add(Node.create(10, {
+ "tag": "r",
+ "relay": 1,
+ "torrc": "intro.tmpl"
+}))
+
+def start():
+ results = hs_instance_stop(network)
+
+ for server in hs_servers:
+ server.stopListening()
+
+ network.stop()
+
+ return results