diff --git a/doc-src/index.html b/doc-src/index.html
index 194ed92df..f7aabe056 100644
--- a/doc-src/index.html
+++ b/doc-src/index.html
@@ -3,11 +3,12 @@
Introduction
mitmproxy
mitmdump
- Concepts
+ Features
diff --git a/doc-src/index.py b/doc-src/index.py
index bf21f5f1d..10cc3b363 100644
--- a/doc-src/index.py
+++ b/doc-src/index.py
@@ -73,6 +73,7 @@ pages = [
Page("clientreplay.html", "Client-side replay"),
Page("serverreplay.html", "Server-side replay"),
Page("sticky.html", "Sticky cookies and auth"),
+ Page("reverseproxy.html", "Reverse proxy mode"),
Page("anticache.html", "Anticache"),
Page("filters.html", "Filter expressions"),
Page("scripts.html", "Scripts"),
diff --git a/doc-src/reverseproxy.html b/doc-src/reverseproxy.html
new file mode 100644
index 000000000..e69de29bb
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index ca80d013a..38d9223a1 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -13,11 +13,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-import mailcap, mimetypes, tempfile, os, subprocess, glob, time, re
+import mailcap, mimetypes, tempfile, os, subprocess, glob, time
import os.path, sys
-import cStringIO
import urwid
-from .. import controller, utils, filt, flow
+from .. import controller, utils, flow
import connlist, connview, help, common, kveditor, palettes
EVENTLOG_SIZE = 500
@@ -177,18 +176,17 @@ class StatusBar(common.WWrap):
t = [
('heading', ("[%s]"%self.master.state.flow_count()).ljust(7)),
]
- t.extend(self.get_status())
-
if self.master.server:
boundaddr = "[%s:%s]"%(self.master.server.address or "*", self.master.server.port)
else:
boundaddr = ""
-
+ t.extend(self.get_status())
status = urwid.AttrWrap(urwid.Columns([
urwid.Text(t),
urwid.Text(
[
self.helptext,
+ boundaddr
],
align="right"
),
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index 66cb4790e..024d23e63 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -1429,7 +1429,7 @@ class FlowReader:
data = tnetstring.load(self.fo)
off = self.fo.tell()
yield Flow._from_state(data)
- except ValueError, v:
+ except ValueError:
# Error is due to EOF
if self.fo.tell() == off and self.fo.read() == '':
return