[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-cloud/master] a/exit-scanner: Format a bulk exit list



commit 00d0407d1743c859b4f91500e7296dde78bf80da
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Thu Mar 5 13:24:47 2020 +0000

    a/exit-scanner: Format a bulk exit list
---
 ansible/roles/exit-scanner/files/exitscan.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ansible/roles/exit-scanner/files/exitscan.py b/ansible/roles/exit-scanner/files/exitscan.py
index dd66d3f..d6ff874 100644
--- a/ansible/roles/exit-scanner/files/exitscan.py
+++ b/ansible/roles/exit-scanner/files/exitscan.py
@@ -125,6 +125,11 @@ $ORIGIN dnsel.torproject.org.
                 out.write(reverse + " IN TXT \"" + fingerprint + "\"\n")
     os.system("sudo /usr/sbin/rndc reload dnsel.torproject.org")
 
+    # Format a bulk exit list
+    with open("lists/bulk", "w") as out:
+        for exit_address in exit_addresses:
+            out.write(exit_address + "\n")
+
 if __name__ == "__main__":
     while True:
         start = datetime.datetime.utcnow()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits