aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console
diff options
context:
space:
mode:
authorWade Catron <onlywade@gmail.com>2015-03-07 08:38:18 -0800
committerWade Catron <onlywade@gmail.com>2015-03-08 10:21:57 -0700
commit803d631f04f6af5bb54bbb46b3efec39622ca216 (patch)
tree5a9853e7f28d29e697e18450d488f3a1ec0e0be0 /libmproxy/console
parent15a8a93a4e4769ab67fa8d77e19c085dabd58f55 (diff)
downloadmitmproxy-803d631f04f6af5bb54bbb46b3efec39622ca216.tar.gz
mitmproxy-803d631f04f6af5bb54bbb46b3efec39622ca216.tar.bz2
mitmproxy-803d631f04f6af5bb54bbb46b3efec39622ca216.zip
Adding a server replay option to ignore host when searching for matching requests
Diffstat (limited to 'libmproxy/console')
-rw-r--r--libmproxy/console/__init__.py5
-rw-r--r--libmproxy/console/flowlist.py6
2 files changed, 8 insertions, 3 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index 0db06832..cc8a0c1f 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -528,7 +528,10 @@ class ConsoleMaster(flow.FlowMaster):
flows,
self.killextra, self.rheaders,
False, self.nopop,
- self.options.replay_ignore_params, self.options.replay_ignore_content, self.options.replay_ignore_payload_params
+ self.options.replay_ignore_params,
+ self.options.replay_ignore_content,
+ self.options.replay_ignore_payload_params,
+ self.options.replay_ignore_host
)
def spawn_editor(self, data):
diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py
index 9e7c6d69..2a6a98c8 100644
--- a/libmproxy/console/flowlist.py
+++ b/libmproxy/console/flowlist.py
@@ -126,7 +126,8 @@ class ConnectionItem(common.WWrap):
self.master.killextra, self.master.rheaders,
False, self.master.nopop,
self.master.options.replay_ignore_params, self.master.options.replay_ignore_content,
- self.master.options.replay_ignore_payload_params
+ self.master.options.replay_ignore_payload_params,
+ self.master.options.replay_ignore_host
)
elif k == "t":
self.master.start_server_playback(
@@ -134,7 +135,8 @@ class ConnectionItem(common.WWrap):
self.master.killextra, self.master.rheaders,
False, self.master.nopop,
self.master.options.replay_ignore_params, self.master.options.replay_ignore_content,
- self.master.options.replay_ignore_payload_params
+ self.master.options.replay_ignore_payload_params,
+ self.master.options.replay_ignore_host
)
else:
self.master.path_prompt(