Fix tor process killed before halt on close

This commit is contained in:
世界
2026-11-25 21:25:46 +08:00
parent 0c4e55ab86
commit fe485b5d25
+1 -1
View File
@@ -139,7 +139,7 @@ var torLogEvents = []control.EventCode{
}
func (t *Outbound) start(scope *adapter.Scope) error {
torInstance, err := tor.Start(t.ctx, t.startConf)
torInstance, err := tor.Start(context.WithoutCancel(t.ctx), t.startConf)
if err != nil {
return E.New(strings.ToLower(err.Error()))
}