diff --git a/proxy/vmess/inbound/inbound.go b/proxy/vmess/inbound/inbound.go index 715c33730..12809a149 100644 --- a/proxy/vmess/inbound/inbound.go +++ b/proxy/vmess/inbound/inbound.go @@ -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 diff --git a/proxy/vmess/outbound/outbound.go b/proxy/vmess/outbound/outbound.go index 7699996b2..3c7f46c89 100644 --- a/proxy/vmess/outbound/outbound.go +++ b/proxy/vmess/outbound/outbound.go @@ -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 }