diff --git a/proxy/vmess/encoding/encoding_test.go b/proxy/vmess/encoding/encoding_test.go index 83973e4c5..f92ea99f5 100644 --- a/proxy/vmess/encoding/encoding_test.go +++ b/proxy/vmess/encoding/encoding_test.go @@ -62,7 +62,7 @@ func TestRequestSerialization(t *testing.T) { assert.Byte(byte(expectedRequest.Security)).Equals(byte(actualRequest.Security)) _, err = server.DecodeRequestHeader(buffer2) - // anti reply attack + // anti replay attack assert.Error(err).IsNotNil() cancel() diff --git a/proxy/vmess/encoding/server.go b/proxy/vmess/encoding/server.go index cdfac9a8d..9d412a179 100644 --- a/proxy/vmess/encoding/server.go +++ b/proxy/vmess/encoding/server.go @@ -165,7 +165,7 @@ func (v *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request copy(sid.key[:], v.requestBodyKey) copy(sid.nonce[:], v.requestBodyIV) if v.sessionHistory.has(sid) { - return nil, errors.New("VMess|Server: Duplicated session id. Possibly under reply attack.") + return nil, errors.New("VMess|Server: Duplicated session id. Possibly under replay attack.") } v.sessionHistory.add(sid)