[tor-commits] [chutney/main] Update to new arti configuration format.

nickm at torproject.org nickm at torproject.org
Thu Nov 18 19:34:13 UTC 2021


commit c825cba0bcd813c644c6ac069deeb7347d3200ee
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Nov 18 14:34:09 2021 -0500

    Update to new arti configuration format.
---
 lib/chutney/TorNet.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index 863a456..55c9378 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -2368,14 +2368,15 @@ state_dir = "{path}/arti/state"
 # These values disable enforce_distance entirely; we can replace them
 # with something like Tor's "EnforceDistinceSubnets 0" if Arti ever
 # implements it.
-enforce_distance = {{ "subnets_family_v4" = 33, "subnets_family_v6" = 129 }}
+ipv4_subnet_family_prefix = 33
+ipv6_subnet_family_prefix = 129
 
-[addr_config]
+[address_filter]
 # Allow the client to accept requests to connect to e.g. 127.0.0.1
 allow_local_addrs = true
 
 """.format(path=self.dir))
-            f.write("""[network]
+            f.write("""[tor_network]
 fallback_caches = [
 """)
             f.write("".join(arti_fallback_lines))



More information about the tor-commits mailing list