mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-10-31 09:15:07 +03:00 
			
		
		
		
	Fix adapter setup and no longer panics on packets shorter than IP header
This commit is contained in:
		
							parent
							
								
									0b494a8255
								
							
						
					
					
						commit
						0715e829c2
					
				
					 3 changed files with 18 additions and 7 deletions
				
			
		|  | @ -93,7 +93,7 @@ func (i *ICMPv6) ParsePacket(datain []byte) { | |||
| 	} | ||||
| 
 | ||||
| 	// Write the packet to TUN/TAP | ||||
| 	i.tun.Send <- response | ||||
| 	i.tun.iface.Write(response) | ||||
| } | ||||
| 
 | ||||
| // Unwraps the ethernet headers of an incoming ICMPv6 packet and hands off | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neil Alexander
						Neil Alexander