Rename errors with Error prefix

This commit is contained in:
v2ray committed 2016-01-30 12:23:56 +01:00
1 parent 2f76680fe9
commit f34e253ea3
10 files changed
+31 -37

No files matched your search

+2 -2
View File
@@ -77,7 +77,7 @@ func (this *VMessRequestReader) Read(reader io.Reader) (*VMessRequest, error) {
userObj, timeSec, valid := this.vUserSet.GetUser(buffer.Value[:nBytes])
if !valid {
return nil, proxy.InvalidAuthentication
return nil, proxy.ErrorInvalidAuthentication
}
timestampHash := TimestampHash()
@@ -105,7 +105,7 @@ func (this *VMessRequestReader) Read(reader io.Reader) (*VMessRequest, error) {
if request.Version != Version {
log.Warning("VMess: Invalid protocol version ", request.Version)
return nil, proxy.InvalidProtocolVersion
return nil, proxy.ErrorInvalidProtocolVersion
}
request.RequestIV = append([]byte(nil), buffer.Value[1:17]...) // 16 bytes