diff --git a/proxy/proxy.go b/proxy/proxy.go index f3a3fd7..d304949 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -202,6 +202,10 @@ func NewProxy(opts *Options) (*Proxy, error) { KeyLogWriter: GetTlsKeyLogWriter(), }, }, + CheckRedirect: func(req *http.Request, via []*http.Request) error { + // 禁止自动重定向 + return http.ErrUseLastResponse + }, } mitm, err := NewMitmMemory(proxy)