From 9046bea466d289d81ef7b9d54127a614ce2ac6bb Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Wed, 26 Aug 2020 04:50:00 +0000 Subject: [PATCH] Adjust TCP inbound logs --- transport/internet/tcp/hub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/internet/tcp/hub.go b/transport/internet/tcp/hub.go index d1348843..dbe9318e 100644 --- a/transport/internet/tcp/hub.go +++ b/transport/internet/tcp/hub.go @@ -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