Explorar el Código

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

https://t.me/projectXray/4624679
风扇滑翔翼 hace 4 meses
padre
commit
daf9cba29f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      common/xudp/xudp.go

+ 1 - 0
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