1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-03 06:30:42 +00:00

Adjust TCP inbound logs

This commit is contained in:
RPRX 2020-08-26 04:50:00 +00:00 committed by GitHub
parent 2bfc6c8e9b
commit 9046bea466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,9 +33,9 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, streamSe
Port: int(port),
}, streamSettings.SocketSettings)
if err != nil {
return nil, err
return nil, newError("failed to listen TCP on", address, ":", port).Base(err)
}
newError("listening TCP on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
newError("Listening TCP on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
tcpSettings := streamSettings.ProtocolSettings.(*Config)
var l *Listener