mirror of
				https://github.com/nadoo/glider.git
				synced 2025-10-31 22:05:51 +08:00 
			
		
		
		
	remove addr in redir proxy which is not needed.
This commit is contained in:
		
							parent
							
								
									83df90b8b2
								
							
						
					
					
						commit
						8527d48190
					
				| @ -19,14 +19,12 @@ const ( | |||||||
| 
 | 
 | ||||||
| type redir struct { | type redir struct { | ||||||
| 	*proxy | 	*proxy | ||||||
| 	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: newProxy(addr, upProxy), | 		proxy: newProxy(addr, upProxy), | ||||||
| 		addr:  addr, |  | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return s, nil | 	return s, nil | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 nadoo
						nadoo