diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index b0e7b70..f232ca3 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -164,6 +164,10 @@ func (tun *netTun) Close() error { tun.ep.Close() + if tun.incomingPacket != nil { + close(tun.incomingPacket) + } + return nil }