mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-03 10:18:42 +00:00
XUDP client: Initialize Global ID's BaseKey correctly (#5602)
https://t.me/projectXray/4624679
This commit is contained in:
@@ -35,6 +35,7 @@ func init() {
|
|||||||
if strings.ToLower(platform.NewEnvFlag(platform.XUDPLog).GetValue(func() string { return "" })) == "true" {
|
if strings.ToLower(platform.NewEnvFlag(platform.XUDPLog).GetValue(func() string { return "" })) == "true" {
|
||||||
Show = true
|
Show = true
|
||||||
}
|
}
|
||||||
|
BaseKey = make([]byte, 32)
|
||||||
rand.Read(BaseKey)
|
rand.Read(BaseKey)
|
||||||
go func() {
|
go func() {
|
||||||
time.Sleep(100 * time.Millisecond) // this is not nice, but need to give some time for Android to setup ENV
|
time.Sleep(100 * time.Millisecond) // this is not nice, but need to give some time for Android to setup ENV
|
||||||
|
|||||||
Reference in New Issue
Block a user