mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	typo, ipv6->ipv4
This commit is contained in:
		
							parent
							
								
									e16d3efb0a
								
							
						
					
					
						commit
						0f99d590a1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -194,7 +194,7 @@ func (tun *TunAdapter) _handlePacket(recvd []byte, err error) {
 | 
				
			||||||
	} else if bs[0]&0xf0 == 0x40 {
 | 
						} else if bs[0]&0xf0 == 0x40 {
 | 
				
			||||||
		// Check if we have a fully-sized IPv4 header
 | 
							// Check if we have a fully-sized IPv4 header
 | 
				
			||||||
		if len(bs) < 20 {
 | 
							if len(bs) < 20 {
 | 
				
			||||||
			tun.log.Traceln("TUN/TAP iface read undersized ipv6 packet, length:", len(bs))
 | 
								tun.log.Traceln("TUN/TAP iface read undersized ipv4 packet, length:", len(bs))
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// Check the packet size
 | 
							// Check the packet size
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue