fixed a bug in redir proxy.

This commit is contained in:
nadoo committed 2017-07-30 13:33:50 +08:00
1 parent aa67e5df41
commit 83df90b8b2
1 file changed
+2 -2
+2 -2
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,
}