mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
fix: close mixed stack panic #1014
This commit is contained in:
parent
40f5c5b987
commit
b56e73a02a
@ -261,15 +261,17 @@ func New(options LC.Tun, tunnel C.Tunnel, additions ...inbound.Addition) (l *Lis
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
l.tunIf = tunIf
|
l.tunIf = tunIf
|
||||||
l.tunStack, err = tun.NewStack(strings.ToLower(options.Stack.String()), stackOptions)
|
|
||||||
|
tunStack, err := tun.NewStack(strings.ToLower(options.Stack.String()), stackOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err = l.tunStack.Start()
|
err = tunStack.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
l.tunStack = tunStack
|
||||||
|
|
||||||
//l.openAndroidHotspot(tunOptions)
|
//l.openAndroidHotspot(tunOptions)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user