mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 01:15:41 +08:00
remove addr in redir proxy which is not needed.
This commit is contained in:
parent
83df90b8b2
commit
8527d48190
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user