Respond with ICMPv6 Packet Too Big over network

This commit is contained in:
Neil Alexander 2021-05-10 23:09:59 +01:00
parent 57ea61b338
commit 815f2a2822
4 changed files with 16 additions and 23 deletions

View file

@ -295,7 +295,7 @@ func main() {
}
n.multicast.SetupAdminHandlers(n.admin.(*admin.AdminSocket))
// Start the TUN/TAP interface
n.tuntap.Init(&n.core, n.state, logger, tuntap.TunOptions{})
n.tuntap.Init(&n.core, n.state, logger, nil)
if err := n.tuntap.Start(); err != nil {
logger.Errorln("An error occurred starting TUN/TAP:", err)
}
@ -325,6 +325,7 @@ func main() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
// Capture the service being stopped on Windows.
<-c
minwinsvc.SetOnExit(n.shutdown)
n.shutdown()
}