禁止自动重定向

addon-dailer
lqqyt2423 4 years ago
parent 5b9e246780
commit bb9ef5a523

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

Loading…
Cancel
Save