mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-05 12:17:21 +00:00
options: filter -> view_filter
This commit is contained in:
parent
1b330ba453
commit
b1ef4bce30
3 changed files with 6 additions and 6 deletions
|
|
@ -396,8 +396,8 @@ class Options(optmanager.OptManager):
|
|||
)
|
||||
|
||||
self.add_option(
|
||||
"filter", Optional[str], None,
|
||||
"Filter view expression."
|
||||
"view_filter", Optional[str], None,
|
||||
"Limit which flows are displayed."
|
||||
)
|
||||
|
||||
# Web options
|
||||
|
|
|
|||
|
|
@ -366,8 +366,8 @@ class FlowListBox(urwid.ListBox):
|
|||
elif key == "f":
|
||||
signals.status_prompt.send(
|
||||
prompt = "Filter View",
|
||||
text = self.master.options.filter,
|
||||
callback = self.master.options.setter("filter")
|
||||
text = self.master.options.view_filter,
|
||||
callback = self.master.options.setter("view_filter")
|
||||
)
|
||||
elif key == "L":
|
||||
signals.status_prompt_path.send(
|
||||
|
|
|
|||
|
|
@ -191,10 +191,10 @@ class StatusBar(urwid.WidgetWrap):
|
|||
r.append("[")
|
||||
r.append(("heading_key", "i"))
|
||||
r.append(":%s]" % self.master.options.intercept)
|
||||
if self.master.options.filter:
|
||||
if self.master.options.view_filter:
|
||||
r.append("[")
|
||||
r.append(("heading_key", "f"))
|
||||
r.append(":%s]" % self.master.options.filter)
|
||||
r.append(":%s]" % self.master.options.view_filter)
|
||||
if self.master.options.stickycookie:
|
||||
r.append("[")
|
||||
r.append(("heading_key", "t"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue