Browse Source

remove time based check in VMess MD5 decommission enforcement

Shelikhoo 3 years ago
parent
commit
9f6c65eeef
1 changed files with 1 additions and 5 deletions
  1. 1 5
      proxy/vmess/inbound/inbound.go

+ 1 - 5
proxy/vmess/inbound/inbound.go

@@ -380,11 +380,7 @@ func init() {
 		return common.CreateObject(ctx, fullConfig)
 		return common.CreateObject(ctx, fullConfig)
 	}))
 	}))
 
 
-	defaultFlagValue := "NOT_DEFINED_AT_ALL"
-
-	if time.Now().Year() >= 2022 {
-		defaultFlagValue = "true_by_default_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" {