mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-30 11:35:40 +00:00
Fix config check sharing service registry with the running instance
This commit is contained in:
@@ -39,6 +39,7 @@ type Instance struct {
|
||||
func (s *StartedService) CheckConfig(ctx context.Context, configContent string) error {
|
||||
selectedLocale := locale.FromContext(ctx)
|
||||
ctx, _ = locale.ContextWithLocale(s.ctx, selectedLocale.Locale)
|
||||
ctx = service.ExtendContext(ctx)
|
||||
options, err := parseConfig(ctx, configContent)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user