mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-29 04:35:02 +08:00
"Q" quits without confirmation prompt.
This commit is contained in:
@@ -944,6 +944,7 @@ class ConsoleMaster(controller.Master):
|
|||||||
("l", "set limit filter pattern"),
|
("l", "set limit filter pattern"),
|
||||||
("L", "load saved flows"),
|
("L", "load saved flows"),
|
||||||
("q", "quit / return to connection list"),
|
("q", "quit / return to connection list"),
|
||||||
|
("Q", "quit without confirm prompt"),
|
||||||
("r", "replay request"),
|
("r", "replay request"),
|
||||||
("R", "revert changes to request"),
|
("R", "revert changes to request"),
|
||||||
("S", "save all flows matching current limit"),
|
("S", "save all flows matching current limit"),
|
||||||
@@ -1158,6 +1159,8 @@ class ConsoleMaster(controller.Master):
|
|||||||
elif k == "k":
|
elif k == "k":
|
||||||
k = "up"
|
k = "up"
|
||||||
elif k in ("q", "Q"):
|
elif k in ("q", "Q"):
|
||||||
|
if k == "Q":
|
||||||
|
raise Stop
|
||||||
if self.viewstate == VIEW_FLOW:
|
if self.viewstate == VIEW_FLOW:
|
||||||
self.view_connlist()
|
self.view_connlist()
|
||||||
elif self.viewstate == VIEW_HELP:
|
elif self.viewstate == VIEW_HELP:
|
||||||
|
|||||||
Reference in New Issue
Block a user