aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols/http2.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2017-02-24 15:42:52 +0100
committerGitHub <noreply@github.com>2017-02-24 15:42:52 +0100
commit83f1e2eec01ab3edec723b252b0c109f00b77c56 (patch)
tree9222f639c50e252339378e8c881474274adc8ae4 /pathod/protocols/http2.py
parentd0d11cec7b479932668eb4e7c99d7824018d0460 (diff)
parentfab3a8dcf4d7cdce55099172e45a6a0978eac4ab (diff)
downloadmitmproxy-83f1e2eec01ab3edec723b252b0c109f00b77c56.tar.gz
mitmproxy-83f1e2eec01ab3edec723b252b0c109f00b77c56.tar.bz2
mitmproxy-83f1e2eec01ab3edec723b252b0c109f00b77c56.zip
Merge pull request #2050 from Kriechi/create_connection
nuke tcp.Address and add proper IPv6 support
Diffstat (limited to 'pathod/protocols/http2.py')
-rw-r--r--pathod/protocols/http2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py
index 628e3f33..7c88c5c7 100644
--- a/pathod/protocols/http2.py
+++ b/pathod/protocols/http2.py
@@ -172,9 +172,9 @@ class HTTP2StateProtocol:
def assemble_request(self, request):
assert isinstance(request, mitmproxy.net.http.request.Request)
- authority = self.tcp_handler.sni if self.tcp_handler.sni else self.tcp_handler.address.host
- if self.tcp_handler.address.port != 443:
- authority += ":%d" % self.tcp_handler.address.port
+ authority = self.tcp_handler.sni if self.tcp_handler.sni else self.tcp_handler.address[0]
+ if self.tcp_handler.address[1] != 443:
+ authority += ":%d" % self.tcp_handler.address[1]
headers = request.headers.copy()