1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-23 12:49:07 -04:00

remove dependency from errors to session

This commit is contained in:
Darien Raymond
2018-06-25 01:09:02 +02:00
parent 55897f0b22
commit 9977eadf8c
21 changed files with 119 additions and 115 deletions

View File

@@ -6,6 +6,7 @@ import (
"context"
"time"
"v2ray.com/core/common/session"
"v2ray.com/core/common/task"
"v2ray.com/core/transport/pipe"
@@ -69,7 +70,7 @@ func (v *Handler) Process(ctx context.Context, link *core.Link, dialer proxy.Dia
if !ok {
return newError("target not specified").AtError()
}
newError("tunneling request to ", target, " via ", rec.Destination()).WithContext(ctx).WriteToLog()
newError("tunneling request to ", target, " via ", rec.Destination()).WriteToLog(session.ExportIDToError(ctx))
command := protocol.RequestCommandTCP
if target.Network == net.Network_UDP {