mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-18 23:00:12 +00:00
Add network type to destination to be ready for UDP connection
This commit is contained in:
1 parent
5d5102de4c
commit
b319704282
14 files changed
+94
-34
No files matched your search
@@ -64,7 +64,7 @@ type InboundConnectionHandler interface {
|
||||
}
|
||||
|
||||
type OutboundConnectionHandlerFactory interface {
|
||||
Create(VP *Point, config []byte, dest v2net.Address) (OutboundConnectionHandler, error)
|
||||
Create(VP *Point, config []byte, dest *v2net.Destination) (OutboundConnectionHandler, error)
|
||||
}
|
||||
|
||||
type OutboundConnectionHandler interface {
|
||||
@@ -85,7 +85,7 @@ func (vp *Point) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (vp *Point) NewInboundConnectionAccepted(destination v2net.Address) InboundRay {
|
||||
func (vp *Point) NewInboundConnectionAccepted(destination *v2net.Destination) InboundRay {
|
||||
ray := NewRay()
|
||||
// TODO: handle error
|
||||
och, _ := vp.ochFactory.Create(vp, vp.ochConfig, destination)
|
||||
|
||||
Reference in new issue
Block a user