From 8527d48190bfd475175fe8efb426a650d9828069 Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Sun, 30 Jul 2017 13:37:33 +0800 Subject: [PATCH] remove addr in redir proxy which is not needed. --- redir_linux.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/redir_linux.go b/redir_linux.go index ff020ea..9d1a5ae 100644 --- a/redir_linux.go +++ b/redir_linux.go @@ -19,14 +19,12 @@ const ( type redir struct { *proxy - addr string } // RedirProxy returns a redirect proxy. func RedirProxy(addr string, upProxy Proxy) (Proxy, error) { s := &redir{ proxy: newProxy(addr, upProxy), - addr: addr, } return s, nil