From 54b11517a640aae1c9566a84e8540c3b65940da3 Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Wed, 17 Nov 2021 16:08:10 +0800 Subject: [PATCH] default do not add log addon --- cmd/go-mitmproxy/main.go | 1 + proxy/proxy.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/go-mitmproxy/main.go b/cmd/go-mitmproxy/main.go index bfaae9d..0f38b3d 100644 --- a/cmd/go-mitmproxy/main.go +++ b/cmd/go-mitmproxy/main.go @@ -66,6 +66,7 @@ func main() { p.AddAddon(dumper) } + p.AddAddon(&addon.Log{}) p.AddAddon(web.NewWebAddon(config.webAddr)) log.Fatal(p.Start()) diff --git a/proxy/proxy.go b/proxy/proxy.go index bd8c297..bb9a8a1 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -73,7 +73,6 @@ func NewProxy(opts *Options) (*Proxy, error) { } proxy.Addons = make([]addon.Addon, 0) - proxy.AddAddon(&addon.Log{}) return proxy, nil }