diff options
Diffstat (limited to 'mitmproxy/console/options.py')
-rw-r--r-- | mitmproxy/console/options.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mitmproxy/console/options.py b/mitmproxy/console/options.py index afb9186d..03aec891 100644 --- a/mitmproxy/console/options.py +++ b/mitmproxy/console/options.py @@ -74,8 +74,8 @@ class Options(urwid.WidgetWrap): select.Option( "Show Host", "w", - lambda: master.showhost, - self.toggle_showhost + lambda: master.options.showhost, + master.options.toggler("showhost") ), select.Heading("Network"), @@ -153,7 +153,6 @@ class Options(urwid.WidgetWrap): def clearall(self): self.master.killextra = False - self.master.showhost = False self.master.refresh_server_playback = True self.master.server.config.no_upstream_cert = False self.master.set_ignore_filter([]) @@ -165,6 +164,7 @@ class Options(urwid.WidgetWrap): replacements = [], scripts = [], setheaders = [], + showhost = False, stickyauth = None, stickycookie = None ) @@ -186,9 +186,6 @@ class Options(urwid.WidgetWrap): def toggle_killextra(self): self.master.killextra = not self.master.killextra - def toggle_showhost(self): - self.master.showhost = not self.master.showhost - def toggle_refresh_server_playback(self): self.master.refresh_server_playback = not self.master.refresh_server_playback |