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