1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-17 13:05:24 +00:00
This commit is contained in:
Darien Raymond 2017-07-25 23:12:54 +02:00
parent 2b80d096ff
commit e7aaba0c30
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ func (w *tcpWorker) Start() error {
conns := make(chan internet.Connection, 16)
hub, err := internet.ListenTCP(ctx, w.address, w.port, conns)
if err != nil {
return err
return newError("failed to listen TCP on ", w.port).Base(err)
}
go w.handleConnections(conns)
w.hub = hub

View File

@ -9,7 +9,7 @@ import (
func CreateInboundHandler(ctx context.Context, config interface{}) (Inbound, error) {
handler, err := common.CreateObject(ctx, config)
if err != nil {
return nil, err
return nil, newError("failed to create inbound handler").Base(err)
}
switch h := handler.(type) {
case Inbound:
@ -22,7 +22,7 @@ func CreateInboundHandler(ctx context.Context, config interface{}) (Inbound, err
func CreateOutboundHandler(ctx context.Context, config interface{}) (Outbound, error) {
handler, err := common.CreateObject(ctx, config)
if err != nil {
return nil, err
return nil, newError("failed to create outbound handler").Base(err)
}
switch h := handler.(type) {
case Outbound: