mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	include offset in expected bytes written
This commit is contained in:
		
							parent
							
								
									6560aac1e9
								
							
						
					
					
						commit
						f6f9b3ef76
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -40,7 +40,7 @@ func (w *tunWriter) _write(b []byte) {
 | 
			
		|||
			}
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
	if written != n {
 | 
			
		||||
	if written != n+TUN_OFFSET_BYTES {
 | 
			
		||||
		w.tun.log.Errorln("TUN iface write mismatch:", written, "bytes written vs", n, "bytes given")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue