|  | @@ -6,14 +6,14 @@ import (
 | 
											
												
													
														|  |  	"v2ray.com/core/transport/ray"
 |  |  	"v2ray.com/core/transport/ray"
 | 
											
												
													
														|  |  )
 |  |  )
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -// PacketDispatcher dispatch a packet and possibly further network payload to its destination.
 |  | 
 | 
											
												
													
														|  | -type PacketDispatcher interface {
 |  | 
 | 
											
												
													
														|  | 
 |  | +// Interface dispatch a packet and possibly further network payload to its destination.
 | 
											
												
													
														|  | 
 |  | +type Interface interface {
 | 
											
												
													
														|  |  	DispatchToOutbound(session *proxy.SessionInfo) ray.InboundRay
 |  |  	DispatchToOutbound(session *proxy.SessionInfo) ray.InboundRay
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -func FromSpace(space app.Space) PacketDispatcher {
 |  | 
 | 
											
												
													
														|  | -	if app := space.GetApplication((*PacketDispatcher)(nil)); app != nil {
 |  | 
 | 
											
												
													
														|  | -		return app.(PacketDispatcher)
 |  | 
 | 
											
												
													
														|  | 
 |  | +func FromSpace(space app.Space) Interface {
 | 
											
												
													
														|  | 
 |  | +	if app := space.GetApplication((*Interface)(nil)); app != nil {
 | 
											
												
													
														|  | 
 |  | +		return app.(Interface)
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  	return nil
 |  |  	return nil
 | 
											
												
													
														|  |  }
 |  |  }
 |