1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-04 17:27:23 -05:00

KCP: Vmess will pass its meta to Dial3 and ListenTCP6

This commit is contained in:
Shelikhoo 2016-06-12 13:48:40 +08:00
parent 0912574166
commit 6d6158b089
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ func (this *VMessInboundHandler) Start() error {
return nil
}
tcpListener, err := hub.ListenTCP(this.meta.Address, this.meta.Port, this.HandleConnection, nil)
tcpListener, err := hub.ListenTCP6(this.meta.Address, this.meta.Port, this.HandleConnection, this.meta, nil)
if err != nil {
log.Error("Unable to listen tcp ", this.meta.Address, ":", this.meta.Port, ": ", err)
return err

View File

@ -34,7 +34,7 @@ func (this *VMessOutboundHandler) Dispatch(target v2net.Destination, payload *al
err := retry.Timed(5, 100).On(func() error {
rec = this.receiverManager.PickReceiver()
rawConn, err := hub.Dial(this.meta.Address, rec.Destination)
rawConn, err := hub.Dial3(this.meta.Address, rec.Destination, this.meta)
if err != nil {
return err
}