From daf9cba29f014903fc55b9151cc29d4618b83c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sat, 24 Jan 2026 22:19:07 +0800 Subject: [PATCH] XUDP client: Initialize Global ID's BaseKey correctly (#5602) https://t.me/projectXray/4624679 --- common/xudp/xudp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/xudp/xudp.go b/common/xudp/xudp.go index e5da49f4..afaa602d 100644 --- a/common/xudp/xudp.go +++ b/common/xudp/xudp.go @@ -35,6 +35,7 @@ func init() { if strings.ToLower(platform.NewEnvFlag(platform.XUDPLog).GetValue(func() string { return "" })) == "true" { Show = true } + BaseKey = make([]byte, 32) rand.Read(BaseKey) go func() { time.Sleep(100 * time.Millisecond) // this is not nice, but need to give some time for Android to setup ENV