remove addr in redir proxy which is not needed.

This commit is contained in:
nadoo 2017-07-30 13:37:33 +08:00
parent 83df90b8b2
commit 8527d48190

View File

@ -19,14 +19,12 @@ const (
type redir struct {
*proxy
addr string
}
// RedirProxy returns a redirect proxy.
func RedirProxy(addr string, upProxy Proxy) (Proxy, error) {
s := &redir{
proxy: newProxy(addr, upProxy),
addr: addr,
}
return s, nil