mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
Merge branch 'master' of github.com:mitmproxy/mitmproxy
This commit is contained in:
commit
cf3182a6d4
@ -73,7 +73,7 @@ class DumpMaster(flow.FlowMaster):
|
||||
|
||||
self.set_stream_large_bodies(options.stream_large_bodies)
|
||||
|
||||
if self.server.config.http2 and not tcp.HAS_ALPN: # pragma: no cover
|
||||
if self.server and self.server.config.http2 and not tcp.HAS_ALPN: # pragma: no cover
|
||||
print("ALPN support missing (OpenSSL 1.0.2+ required)!\n"
|
||||
"HTTP/2 is disabled. Use --no-http2 to silence this warning.",
|
||||
file=sys.stderr)
|
||||
|
@ -163,7 +163,7 @@ class ServerConnectionMixin(object):
|
||||
self.server_conn.finish()
|
||||
self.server_conn.close()
|
||||
self.channel.tell("serverdisconnect", self.server_conn)
|
||||
self.server_conn = ServerConnection(address, source_address)
|
||||
self.server_conn = ServerConnection(address, (source_address.host, 0))
|
||||
|
||||
def connect(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user