mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
redir: fixed a compile error on linux
This commit is contained in:
parent
4574ab1c1a
commit
b2b3a94798
@ -23,8 +23,8 @@ type RedirProxy struct {
|
||||
|
||||
// NewRedirProxy returns a redirect proxy.
|
||||
func NewRedirProxy(addr string, upProxy Proxy) (*RedirProxy, error) {
|
||||
s := &redir{
|
||||
proxy: newProxy(addr, upProxy),
|
||||
s := &RedirProxy{
|
||||
proxy: NewProxy(addr, upProxy),
|
||||
}
|
||||
|
||||
return s, nil
|
||||
|
Loading…
Reference in New Issue
Block a user