mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
wgengine/netstack: close ipstack when netstack.Impl is closed
Fixes netstack.Impl leaking goroutines after shutdown. Signed-off-by: kylecarbs <kyle@carberry.com>
This commit is contained in:
parent
d7f452c0a1
commit
9280d39678
@ -201,6 +201,7 @@ func Create(logf logger.Logf, tundev *tstun.Wrapper, e wgengine.Engine, mc *magi
|
|||||||
|
|
||||||
func (ns *Impl) Close() error {
|
func (ns *Impl) Close() error {
|
||||||
ns.ctxCancel()
|
ns.ctxCancel()
|
||||||
|
ns.ipstack.Close()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user