mirror of
https://github.com/nadoo/glider.git
synced 2026-11-23 23:49:41 +08:00
remove addr in redir proxy which is not needed.
This commit is contained in:
1 parent
cf837b5b40
commit
eb9e2fd4e5
1 file changed
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user