mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Disable tun panic on IPv4 packets and add a link to a Vyatta router config
This commit is contained in:
parent
82fd435211
commit
e5d526881d
2 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,7 @@ func (tun *tunDevice) read() error {
|
|||
if buf[0] & 0xf0 != 0x60 ||
|
||||
n != 256*int(buf[4]) + int(buf[5]) + IPv6_HEADER_LENGTH {
|
||||
// Either not an IPv6 packet or not the complete packet for some reason
|
||||
panic("Should not happen in testing")
|
||||
//panic("Should not happen in testing")
|
||||
continue
|
||||
}
|
||||
packet := append(util_getBytes(), buf[:n]...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue