From 0fb48bc6a72bdd6a88e0b9ddbdd64db58a57daf4 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 12 Dec 2017 13:58:17 +0100 Subject: minor improvements, add tests for ipv4-mapped addresses --- test/mitmproxy/platform/test_pf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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"): -- cgit v1.2.3