mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +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 {
|
type redir struct {
|
||||||
*proxy
|
*proxy
|
||||||
addr string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RedirProxy returns a redirect proxy.
|
// RedirProxy returns a redirect proxy.
|
||||||
func RedirProxy(addr string, upProxy Proxy) (Proxy, error) {
|
func RedirProxy(addr string, upProxy Proxy) (Proxy, error) {
|
||||||
s := &redir{
|
s := &redir{
|
||||||
proxy: newProxy(addr, upProxy),
|
proxy: newProxy(addr, upProxy),
|
||||||
addr: addr,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user