mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 01:17:30 -05:00
Enable AEAD by Default
This commit is contained in:
parent
8d489f6c7c
commit
6a29fa5fe2
@ -55,13 +55,19 @@ func NewClientSession(idHash protocol.IDHash) *ClientSession {
|
||||
|
||||
session := &ClientSession{}
|
||||
|
||||
session.isAEADRequest = false
|
||||
session.isAEADRequest = true
|
||||
|
||||
if vmessexp, vmessexp_found := os.LookupEnv("VMESSAEADEXPERIMENT"); vmessexp_found {
|
||||
if vmessexp == "y" {
|
||||
session.isAEADRequest = true
|
||||
fmt.Println("=======VMESSAEADEXPERIMENT ENABLED========")
|
||||
}
|
||||
if vmessexp == "n" {
|
||||
session.isAEADRequest = false
|
||||
}
|
||||
}
|
||||
|
||||
if session.isAEADRequest {
|
||||
fmt.Println("=======VMESSAEADEXPERIMENT ENABLED========")
|
||||
}
|
||||
|
||||
copy(session.requestBodyKey[:], randomBytes[:16])
|
||||
|
Loading…
Reference in New Issue
Block a user