From cf837b5b40cf161e7434612d000e657c41110f09 Mon Sep 17 00:00:00 2001 From: nadoo Date: Sun, 30 Jul 2017 13:33:50 +0800 Subject: [PATCH] fixed a bug in redir proxy. --- redir_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redir_linux.go b/redir_linux.go index 1bf8f9a..ff020ea 100644 --- a/redir_linux.go +++ b/redir_linux.go @@ -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, }