mirror of https://github.com/v2ray/v2ray-core
				
				
				
			fix #1477
							parent
							
								
									ac6c262f2e
								
							
						
					
					
						commit
						012a2d6f57
					
				| 
						 | 
				
			
			@ -26,6 +26,9 @@ type KCPPacketReader struct {
 | 
			
		|||
 | 
			
		||||
func (r *KCPPacketReader) Read(b []byte) []Segment {
 | 
			
		||||
	if r.Header != nil {
 | 
			
		||||
		if int32(len(b)) <= r.Header.Size() {
 | 
			
		||||
			return nil
 | 
			
		||||
		}
 | 
			
		||||
		b = b[r.Header.Size():]
 | 
			
		||||
	}
 | 
			
		||||
	if r.Security != nil {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue