mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-13 13:57:05 +00:00
daemon: Fix registry leak
This commit is contained in:
parent
0bd109d7bc
commit
ca76c56377
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ type OverrideOptions struct {
|
|||
}
|
||||
|
||||
func (s *StartedService) newInstance(profileContent string, overrideOptions *OverrideOptions) (*Instance, error) {
|
||||
ctx := s.ctx
|
||||
ctx := service.ExtendContext(s.ctx)
|
||||
service.MustRegister[deprecated.Manager](ctx, new(deprecatedManager))
|
||||
ctx, cancel := context.WithCancel(include.Context(ctx))
|
||||
options, err := parseConfig(ctx, profileContent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue