From 1a238cbb7d213433942dcc6268274e0638805e23 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Tue, 12 Nov 2024 06:42:52 +0000 Subject: [PATCH] REALITY client: Log invalid connections at warning level Closes https://github.com/XTLS/Xray-core/issues/4001 --- transport/internet/reality/reality.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/reality/reality.go b/transport/internet/reality/reality.go index c2f7859c..a65507c6 100644 --- a/transport/internet/reality/reality.go +++ b/transport/internet/reality/reality.go @@ -255,7 +255,7 @@ func UClient(c net.Conn, config *Config, ctx context.Context, dest net.Destinati // Do not close the connection }() time.Sleep(time.Duration(randBetween(config.SpiderY[8], config.SpiderY[9])) * time.Millisecond) // return - return nil, errors.New("REALITY: processed invalid connection") + return nil, errors.New("REALITY: processed invalid connection").AtWarning() } return uConn, nil }