mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-11-04 11:49:16 +00:00 
			
		
		
		
	remove unuseful errors
This commit is contained in:
		
							parent
							
								
									09c0fa558a
								
							
						
					
					
						commit
						3ec82f5d32
					
				@ -1,10 +0,0 @@
 | 
			
		||||
package protocol
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"v2ray.com/core/common/errors"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	ErrInvalidUser    = errors.New("Invalid user.")
 | 
			
		||||
	ErrInvalidVersion = errors.New("Invalid version.")
 | 
			
		||||
)
 | 
			
		||||
@ -58,7 +58,7 @@ func (v *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
 | 
			
		||||
 | 
			
		||||
	user, timestamp, valid := v.userValidator.Get(buffer[:protocol.IDBytesLen])
 | 
			
		||||
	if !valid {
 | 
			
		||||
		return nil, protocol.ErrInvalidUser
 | 
			
		||||
		return nil, errors.New("VMess|Server: Invalid user.")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	timestampHash := md5.New()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user