XUDP client: Initialize Global ID's BaseKey correctly (#5602)

https://t.me/projectXray/4624679
This commit is contained in:
风扇滑翔翼 authored and RPRX committed 2026-01-24 15:11:44 +00:00
1 parent 445c0d456c
commit daf9cba29f
1 file changed
+1
+1
View File
@@ -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