diff options
author | Sandor Nemes <sandor.nemes@gmail.com> | 2016-01-18 09:55:46 +0100 |
---|---|---|
committer | Sandor Nemes <sandor.nemes@gmail.com> | 2016-01-18 09:55:46 +0100 |
commit | 918a457f5a6e4b3281f86ba31107d0a05082fb5e (patch) | |
tree | cbe18aa953fe5c04a1b29645c4a65849092a3ff8 /libmproxy/protocol/http_replay.py | |
parent | 192f0339674d1b276a0866eddcebb9c93036ae2b (diff) | |
download | mitmproxy-918a457f5a6e4b3281f86ba31107d0a05082fb5e.tar.gz mitmproxy-918a457f5a6e4b3281f86ba31107d0a05082fb5e.tar.bz2 mitmproxy-918a457f5a6e4b3281f86ba31107d0a05082fb5e.zip |
Minor aesthetic fixes.
Diffstat (limited to 'libmproxy/protocol/http_replay.py')
-rw-r--r-- | libmproxy/protocol/http_replay.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http_replay.py b/libmproxy/protocol/http_replay.py index 409810d5..63870dfb 100644 --- a/libmproxy/protocol/http_replay.py +++ b/libmproxy/protocol/http_replay.py @@ -46,7 +46,7 @@ class RequestReplayThread(threading.Thread): # In all modes, we directly connect to the server displayed if self.config.mode == "upstream": server_address = self.config.upstream_server.address - server = ServerConnection(server_address, self.config.host) + server = ServerConnection(server_address, (self.config.host, 0)) server.connect() if r.scheme == "https": connect_request = make_connect_request((r.host, r.port)) @@ -68,7 +68,7 @@ class RequestReplayThread(threading.Thread): r.form_out = "absolute" else: server_address = (r.host, r.port) - server = ServerConnection(server_address, self.config.host) + server = ServerConnection(server_address, (self.config.host, 0)) server.connect() if r.scheme == "https": server.establish_ssl( |