Skip to content

Commit

Permalink
Close network stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimonides-proton committed Dec 19, 2024
1 parent 1ffa504 commit 55618bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tun/netstack/tun.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func (tun *netTun) Flush() error {

func (tun *netTun) Close() error {
tun.stack.RemoveNIC(1)
tun.stack.Close()

if tun.events != nil {
close(tun.events)
Expand Down

0 comments on commit 55618bc

Please sign in to comment.