REALITY client: Log invalid connections at warning level

Closes https://github.com/XTLS/Xray-core/issues/4001
This commit is contained in:
RPRX 2024-11-12 06:42:52 +00:00 committed by GitHub
parent 44b1dd0e67
commit 1a238cbb7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}