diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-04 00:46:42 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-04 00:46:42 +0200 |
commit | a18db90ea3123b37e3f1fd3f10da001a8ea893c2 (patch) | |
tree | 7e3ed5515b59a52ad14c5c8c3047ce5c2daae3d9 /examples/flowbasic | |
parent | 14457f29b3d89e234d0791c4980e5cf9514185dd (diff) | |
download | mitmproxy-a18db90ea3123b37e3f1fd3f10da001a8ea893c2.tar.gz mitmproxy-a18db90ea3123b37e3f1fd3f10da001a8ea893c2.tar.bz2 mitmproxy-a18db90ea3123b37e3f1fd3f10da001a8ea893c2.zip |
update example inline scripts
Diffstat (limited to 'examples/flowbasic')
-rwxr-xr-x | examples/flowbasic | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/flowbasic b/examples/flowbasic index 6663dc46..78b9eff7 100755 --- a/examples/flowbasic +++ b/examples/flowbasic @@ -8,9 +8,8 @@ Note that request and response messages are not automatically replied to, so we need to implement handlers to do this. """ -import os -from libmproxy import flow, proxy -from libmproxy.proxy.server import ProxyServer +from libmproxy import flow +from libmproxy.proxy import ProxyServer, ProxyConfig class MyMaster(flow.FlowMaster): @@ -34,7 +33,7 @@ class MyMaster(flow.FlowMaster): return f -config = proxy.ProxyConfig( +config = ProxyConfig( port=8080, # use ~/.mitmproxy/mitmproxy-ca.pem as default CA file. cadir="~/.mitmproxy/" |