Revert "move non-VMessAEAD warning to startup"

This reverts commit e87e3d6b
This commit is contained in:
Shelikhoo 2021-04-05 18:50:07 +01:00
parent d023f68f07
commit 2604c7c375
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
2 changed files with 1 additions and 1 deletions

View File

@ -199,6 +199,7 @@ func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
if s.isAEADForced {
return nil, drainConnection(newError("invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received. You can still disable this security feature with environment variable v2ray.vmess.aead.forced = false . You will not be able to enable legacy header workaround in the future."))
}
newError("Critical Warning: potentially invalid user: a non VMessAEAD connection is received. From 2022 Jan 1st, this kind of connection will be rejected by default. You should update or replace your client software now. ").AtWarning().WriteToLog()
user = userLegacy
iv := hashTimestamp(md5.New(), timestamp)
vmessAccount = userLegacy.Account.(*vmess.MemoryAccount)

View File

@ -340,7 +340,6 @@ func (s *Instance) Start() error {
}
newError("V2Ray ", Version(), " started").AtWarning().WriteToLog()
newError("Starting 2022, non-VMessAEAD connections will be rejected by default.").AtWarning().WriteToLog()
return nil
}