mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 17:32:27 +08:00
options: filter -> view_filter
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user