mirror of
https://github.com/nadoo/glider.git
synced 2026-11-23 23:49:41 +08:00
redir: fixed a compile error on linux
This commit is contained in:
1 parent
4574ab1c1a
commit
b2b3a94798
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user