aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http_replay.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-01-18 16:07:02 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-01-18 16:07:02 +0100
commit4024721c7b1762325d90146044f2fdc01d07caa0 (patch)
tree3180434c7af8e7e6c7b398dd08805e6ff0a319b7 /libmproxy/protocol/http_replay.py
parent7eb9bf818c6ab0b4fa341d741ead0a4199805473 (diff)
parentcb3107fd0eb119ec88265c842f457845fe2a0b4a (diff)
downloadmitmproxy-4024721c7b1762325d90146044f2fdc01d07caa0.tar.gz
mitmproxy-4024721c7b1762325d90146044f2fdc01d07caa0.tar.bz2
mitmproxy-4024721c7b1762325d90146044f2fdc01d07caa0.zip
Merge pull request #879 from snemes/master
Fixed a problem with the bind address not being used as the source address on outgoing TCP packets
Diffstat (limited to 'libmproxy/protocol/http_replay.py')
-rw-r--r--libmproxy/protocol/http_replay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http_replay.py b/libmproxy/protocol/http_replay.py
index b7faad07..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)
+ 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)
+ server = ServerConnection(server_address, (self.config.host, 0))
server.connect()
if r.scheme == "https":
server.establish_ssl(