Browse Source

Fix: context of DNS simplified config (#1665)

* Fix: context of DNS simplified config

* Lint: remove nolint flag
秋のかえで 3 years ago
parent
commit
dc69c9502d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/dns/dns.go

+ 2 - 2
app/dns/dns.go

@@ -315,8 +315,8 @@ func init() {
 		return New(ctx, config.(*Config))
 		return New(ctx, config.(*Config))
 	}))
 	}))
 
 
-	common.Must(common.RegisterConfig((*SimplifiedConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { // nolint: staticcheck
-		ctx = cfgcommon.NewConfigureLoadingContext(context.Background()) // nolint: staticcheck
+	common.Must(common.RegisterConfig((*SimplifiedConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
+		ctx = cfgcommon.NewConfigureLoadingContext(ctx)
 
 
 		geoloadername := platform.NewEnvFlag("v2ray.conf.geoloader").GetValue(func() string {
 		geoloadername := platform.NewEnvFlag("v2ray.conf.geoloader").GetValue(func() string {
 			return "standard"
 			return "standard"