diff --git a/redir_linux.go b/redir_linux.go index 3edfb73..fbb6e6f 100644 --- a/redir_linux.go +++ b/redir_linux.go @@ -23,8 +23,8 @@ type RedirProxy struct { // NewRedirProxy returns a redirect proxy. func NewRedirProxy(addr string, upProxy Proxy) (*RedirProxy, error) { - s := &redir{ - proxy: newProxy(addr, upProxy), + s := &RedirProxy{ + proxy: NewProxy(addr, upProxy), } return s, nil