mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-09 00:39:13 +00:00
Rename errors with Error prefix
This commit is contained in:
1 parent
2f76680fe9
commit
f34e253ea3
10 files changed
+31
-37
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user