Skip to content

Commit 0acf62f

Browse files
committed
wgengine/netstack: close ipstack when netstack.Impl is closed
Fixes netstack.Impl leaking goroutines after shutdown. Signed-off-by: kylecarbs <kyle@carberry.com>
1 parent d7f452c commit 0acf62f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wgengine/netstack/netstack.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ func Create(logf logger.Logf, tundev *tstun.Wrapper, e wgengine.Engine, mc *magi
201201

202202
func (ns *Impl) Close() error {
203203
ns.ctxCancel()
204+
ns.ipstack.Close()
204205
return nil
205206
}
206207

0 commit comments

Comments
 (0)