From b2b3a9479879ef087cda6474da7aa6be39b4d52f Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Thu, 17 Aug 2017 20:26:46 +0800 Subject: [PATCH] redir: fixed a compile error on linux --- redir_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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