[tor-commits] [stem/master] Adding an ExitPolicy class

atagar at torproject.org atagar at torproject.org
Thu Jul 19 16:01:03 UTC 2012


commit 78a997ea34aaee8cc4515382fb0f0ec4814c32a4
Merge: e68adb7 e670090
Author: Damian Johnson <atagar at torproject.org>
Date:   Thu Jul 19 08:58:07 2012 -0700

    Adding an ExitPolicy class
    
    First draft was ported from arm by gsathya in...
    https://trac.torproject.org/5454
    
    I've since rewritten most of it to support IPv6, masks, and properly comply
    with the Tor spec for an exitpattern (arm's class was written to support torrc
    policies, which are different).

 run_tests.py                               |    4 +
 stem/descriptor/server_descriptor.py       |    7 +-
 stem/exit_policy.py                        |  605 ++++++++++++++++++++++++++++
 stem/util/connection.py                    |  173 ++++++++-
 test/integ/descriptor/server_descriptor.py |    7 +-
 test/unit/exit_policy/__init__.py          |    6 +
 test/unit/exit_policy/policy.py            |  197 +++++++++
 test/unit/exit_policy/rule.py              |  327 +++++++++++++++
 test/unit/util/connection.py               |   77 ++++
 9 files changed, 1395 insertions(+), 8 deletions(-)



More information about the tor-commits mailing list