diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-21 00:20:44 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-24 13:39:02 +0100 |
commit | 3e9125a3c13084f4abb0e5b74554909f24df9454 (patch) | |
tree | 924b6d81e14c24535aef662e3696c291d7370bc5 /mitmproxy/http.py | |
parent | d0d11cec7b479932668eb4e7c99d7824018d0460 (diff) | |
download | mitmproxy-3e9125a3c13084f4abb0e5b74554909f24df9454.tar.gz mitmproxy-3e9125a3c13084f4abb0e5b74554909f24df9454.tar.bz2 mitmproxy-3e9125a3c13084f4abb0e5b74554909f24df9454.zip |
nuke tcp.Address and add proper IPv6 support
Diffstat (limited to 'mitmproxy/http.py')
-rw-r--r-- | mitmproxy/http.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mitmproxy/http.py b/mitmproxy/http.py index f0cabcf8..c6b17533 100644 --- a/mitmproxy/http.py +++ b/mitmproxy/http.py @@ -5,7 +5,6 @@ from mitmproxy import flow from mitmproxy.net import http from mitmproxy import version -from mitmproxy.net import tcp from mitmproxy import connections # noqa @@ -245,9 +244,8 @@ def make_error_response( def make_connect_request(address): - address = tcp.Address.wrap(address) return HTTPRequest( - "authority", b"CONNECT", None, address.host, address.port, None, b"HTTP/1.1", + "authority", b"CONNECT", None, address[0], address[1], None, b"HTTP/1.1", http.Headers(), b"" ) |