mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-08 21:40:28 +00: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
@ -50,6 +50,8 @@ In practice, you probably want to run this instead:
|
||||
This keeps a persistent set of keys (and by extension, IP address) and gives you the option of editing the configuration file.
|
||||
If you want to use it as an overlay network on top of e.g. the internet, then you can do so by adding the remote devices domain/address and port (as a string, e.g. `"1.2.3.4:5678"`) to the list of `Peers` in the configuration file.
|
||||
|
||||
A [Vyatta-based](https://github.com/neilalexander/vyatta-yggdrasil) router configuration is also available.
|
||||
|
||||
## Optional: advertise a prefix locally
|
||||
|
||||
Suppose a node has generated the address: `fd00:1111:2222:3333:4444:5555:6666:7777`
|
||||
|
@ -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…
Reference in New Issue
Block a user