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