Skip to content

Commit 082ac33

Browse files
authored
XUDP client: Initialize BaseKey correctly (#5602)
https://t.me/projectXray/4624679
1 parent 445c0d4 commit 082ac33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/xudp/xudp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func init() {
3535
if strings.ToLower(platform.NewEnvFlag(platform.XUDPLog).GetValue(func() string { return "" })) == "true" {
3636
Show = true
3737
}
38+
BaseKey = make([]byte, 32)
3839
rand.Read(BaseKey)
3940
go func() {
4041
time.Sleep(100 * time.Millisecond) // this is not nice, but need to give some time for Android to setup ENV

0 commit comments

Comments
 (0)