1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 07:26:24 -05:00

remove time based check in VMess MD5 decommission enforcement

This commit is contained in:
Shelikhoo 2022-01-02 15:06:47 +00:00
parent 25ae87aad2
commit 9f6c65eeef
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -380,11 +380,7 @@ func init() {
return common.CreateObject(ctx, fullConfig) return common.CreateObject(ctx, fullConfig)
})) }))
defaultFlagValue := "NOT_DEFINED_AT_ALL" defaultFlagValue := "true_by_default_2022"
if time.Now().Year() >= 2022 {
defaultFlagValue = "true_by_default_2022"
}
isAeadForced := platform.NewEnvFlag("v2ray.vmess.aead.forced").GetValue(func() string { return defaultFlagValue }) isAeadForced := platform.NewEnvFlag("v2ray.vmess.aead.forced").GetValue(func() string { return defaultFlagValue })
if isAeadForced == "true" { if isAeadForced == "true" {