mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-03-28 01:44:17 +08:00
- Strip out old auth mechanisms, and enable addon - Disable web app auth for now - this should just use the Tornado auth stuff
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
from mitmproxy.addons import anticache
|
|
from mitmproxy.addons import anticomp
|
|
from mitmproxy.addons import clientplayback
|
|
from mitmproxy.addons import streamfile
|
|
from mitmproxy.addons import onboarding
|
|
from mitmproxy.addons import proxyauth
|
|
from mitmproxy.addons import replace
|
|
from mitmproxy.addons import script
|
|
from mitmproxy.addons import setheaders
|
|
from mitmproxy.addons import serverplayback
|
|
from mitmproxy.addons import stickyauth
|
|
from mitmproxy.addons import stickycookie
|
|
from mitmproxy.addons import streambodies
|
|
from mitmproxy.addons import upstream_auth
|
|
|
|
|
|
def default_addons():
|
|
return [
|
|
onboarding.Onboarding(),
|
|
proxyauth.ProxyAuth(),
|
|
anticache.AntiCache(),
|
|
anticomp.AntiComp(),
|
|
stickyauth.StickyAuth(),
|
|
stickycookie.StickyCookie(),
|
|
script.ScriptLoader(),
|
|
streamfile.StreamFile(),
|
|
streambodies.StreamBodies(),
|
|
replace.Replace(),
|
|
setheaders.SetHeaders(),
|
|
serverplayback.ServerPlayback(),
|
|
clientplayback.ClientPlayback(),
|
|
upstream_auth.UpstreamAuth(),
|
|
]
|