From 03a4786d025e2c5ed5332dd61c8c4564c72968ac Mon Sep 17 00:00:00 2001 From: kshangx Date: Thu, 22 Feb 2024 17:39:10 -0800 Subject: [PATCH] close network stack Signed-off-by: kshangx --- tun/netstack/tun.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index 2b73054b2..a06bc212d 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -167,6 +167,7 @@ func (tun *netTun) WriteNotify() { func (tun *netTun) Close() error { tun.stack.RemoveNIC(1) + tun.stack.Close() if tun.events != nil { close(tun.events)