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 { type redir struct {
*proxy *proxy
addr string
} }
// RedirProxy returns a redirect proxy. // RedirProxy returns a redirect proxy.
func RedirProxy(addr string, upProxy Proxy) (Proxy, error) { func RedirProxy(addr string, upProxy Proxy) (Proxy, error) {
s := &redir{ s := &redir{
proxy: newProxy(addr, upProxy), proxy: newProxy(addr, upProxy),
addr: addr,
} }
return s, nil return s, nil