redir: fixed a compile error on linux

This commit is contained in:
nadoo 2017-08-17 20:26:46 +08:00
parent 4574ab1c1a
commit b2b3a94798

View File

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