fixed a bug in redir proxy.

This commit is contained in:
nadoo 2017-07-30 13:33:50 +08:00
parent aa67e5df41
commit 83df90b8b2

View File

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