diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-03-24 10:15:41 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-03-25 10:48:12 +1300 |
commit | 541c1e8b9f0e2e12bd770100888129639cc94827 (patch) | |
tree | 8939e7c9fc7e6810e9363e598e84882098cbde04 /examples/complex | |
parent | b531353ee0259425cff2b4857716ba2cd995a437 (diff) | |
download | mitmproxy-541c1e8b9f0e2e12bd770100888129639cc94827.tar.gz mitmproxy-541c1e8b9f0e2e12bd770100888129639cc94827.tar.bz2 mitmproxy-541c1e8b9f0e2e12bd770100888129639cc94827.zip |
addons: start -> load throughout
Diffstat (limited to 'examples/complex')
-rw-r--r-- | examples/complex/dns_spoofing.py | 2 | ||||
-rw-r--r-- | examples/complex/har_dump.py | 2 | ||||
-rw-r--r-- | examples/complex/remote_debug.py | 2 | ||||
-rw-r--r-- | examples/complex/tls_passthrough.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py index ca2bcd35..9f6af522 100644 --- a/examples/complex/dns_spoofing.py +++ b/examples/complex/dns_spoofing.py @@ -54,5 +54,5 @@ class Rerouter: flow.request.port = port -def start(opts): +def load(opts): return Rerouter() diff --git a/examples/complex/har_dump.py b/examples/complex/har_dump.py index 9a86e45e..f9f8cd95 100644 --- a/examples/complex/har_dump.py +++ b/examples/complex/har_dump.py @@ -25,7 +25,7 @@ HAR = {} SERVERS_SEEN = set() -def start(opts): +def load(opts): """ Called once on script startup before any other events. """ diff --git a/examples/complex/remote_debug.py b/examples/complex/remote_debug.py index ae0dffc1..0b7049d2 100644 --- a/examples/complex/remote_debug.py +++ b/examples/complex/remote_debug.py @@ -14,6 +14,6 @@ Usage: """ -def start(opts): +def load(opts): import pydevd pydevd.settrace("localhost", port=5678, stdoutToServer=True, stderrToServer=True) diff --git a/examples/complex/tls_passthrough.py b/examples/complex/tls_passthrough.py index 6dba7ca1..3b3c8936 100644 --- a/examples/complex/tls_passthrough.py +++ b/examples/complex/tls_passthrough.py @@ -112,7 +112,7 @@ class TlsFeedback(TlsLayer): tls_strategy = None -def start(opts): +def load(opts): global tls_strategy if len(sys.argv) == 2: tls_strategy = ProbabilisticStrategy(float(sys.argv[1])) |