Fix mitmproxy crash when passed -n flag.

This commit is contained in:
Aldo Cortesi 2012-02-26 23:23:54 +13:00
parent 4ef8260e9a
commit bd1d699040

View File

@ -143,7 +143,7 @@ class StatusBar(common.WWrap):
r.append("[")
r.append(("heading_key", "u"))
r.append(":%s]"%self.master.stickyauth_txt)
if self.master.server.config.reverse_proxy:
if self.master.server and self.master.server.config.reverse_proxy:
r.append("[")
r.append(("heading_key", "R"))
r.append(":%s]"%utils.unparse_url(*self.master.server.config.reverse_proxy))