diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-12-12 13:58:17 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-12-12 14:00:12 +0100 |
commit | 0fb48bc6a72bdd6a88e0b9ddbdd64db58a57daf4 (patch) | |
tree | 47cbf7fa8985ca17bea67f40838c9e59ff1525e7 /test | |
parent | d181b4643fbf1dcafecbf7bd06e8cbe2e8d5e09d (diff) | |
download | mitmproxy-0fb48bc6a72bdd6a88e0b9ddbdd64db58a57daf4.tar.gz mitmproxy-0fb48bc6a72bdd6a88e0b9ddbdd64db58a57daf4.tar.bz2 mitmproxy-0fb48bc6a72bdd6a88e0b9ddbdd64db58a57daf4.zip |
minor improvements, add tests for ipv4-mapped addresses
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/platform/test_pf.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/mitmproxy/platform/test_pf.py b/test/mitmproxy/platform/test_pf.py index 3292d345..b048a697 100644 --- a/test/mitmproxy/platform/test_pf.py +++ b/test/mitmproxy/platform/test_pf.py @@ -15,6 +15,7 @@ class TestLookup: d = f.read() assert pf.lookup("192.168.1.111", 40000, d) == ("5.5.5.5", 80) + assert pf.lookup("::ffff:192.168.1.111", 40000, d) == ("5.5.5.5", 80) with pytest.raises(Exception, match="Could not resolve original destination"): pf.lookup("192.168.1.112", 40000, d) with pytest.raises(Exception, match="Could not resolve original destination"): |