mirror of
				https://github.com/nadoo/glider.git
				synced 2025-11-04 07:42:38 +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 {
 | 
					type redir struct {
 | 
				
			||||||
	Proxy
 | 
						*proxy
 | 
				
			||||||
	addr string
 | 
						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: upProxy,
 | 
							proxy: newProxy(addr, upProxy),
 | 
				
			||||||
		addr:  addr,
 | 
							addr:  addr,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user