From 02dfcf2b4dbb4a2aa7439ddb1e18718315a2efaf Mon Sep 17 00:00:00 2001 From: SaltyMonkey <1570693+saltymonkey@users.noreply.github.com> Date: Thu, 9 Jul 2026 07:33:30 +0800 Subject: [PATCH] fix: incorrect alphabet size used in session-table for predefined tables in xhttp-config --- transport/xhttp/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/xhttp/config.go b/transport/xhttp/config.go index 3d97a24e..f6bf572e 100644 --- a/transport/xhttp/config.go +++ b/transport/xhttp/config.go @@ -630,7 +630,7 @@ func (c *Config) GetGenerateSessionID() (func() string, error) { if err != nil { return nil, fmt.Errorf("invalid session-length: %w", err) } - room := roomSize(len(c.SessionTable), sessionLength.Min, sessionLength.Max) + room := roomSize(len(sessionTable), sessionLength.Min, sessionLength.Max) // 2.1B possiblities should be enough if room.Cmp(big.NewInt(2<<30)) < 0 { return nil, errors.New("session-table or session-length is too small")