aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/transparent.rst2
-rw-r--r--mitmproxy/tools/console/master.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/transparent.rst b/docs/transparent.rst
index 8befbac5..889079af 100644
--- a/docs/transparent.rst
+++ b/docs/transparent.rst
@@ -44,7 +44,7 @@ This mode does require root privileges though. There's a wrapper in the examples
called 'mitmproxy_shim.c', which will enable you to use this mode with dropped priviliges.
It can be used as follows::
- gcc examples/mitmproxy_shim.c -o mitmproxy_shim -lcap
+ gcc examples/complex/full_transparency_shim.c -o mitmproxy_shim -lcap
sudo chown root:root mitmproxy_shim
sudo chmod u+s mitmproxy_shim
./mitmproxy_shim $(which mitmproxy) -T --spoof-source-address
diff --git a/mitmproxy/tools/console/master.py b/mitmproxy/tools/console/master.py
index 10f8cbf5..f6626c55 100644
--- a/mitmproxy/tools/console/master.py
+++ b/mitmproxy/tools/console/master.py
@@ -270,6 +270,8 @@ class ConsoleMaster(master.Master):
print("Could not load file: {}".format(ret), file=sys.stderr)
sys.exit(1)
+ self.loop.set_alarm_in(0.01, self.ticker)
+
self.loop.set_alarm_in(
0.0001,
lambda *args: self.view_flowlist()