diff options
-rw-r--r-- | tun/netstack/tun.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |