1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

Fix: context of DNS simplified config (#1665)

* Fix: context of DNS simplified config

* Lint: remove nolint flag
This commit is contained in:
秋のかえで 2022-03-09 10:59:18 +08:00 committed by GitHub
parent 6f8af37568
commit dc69c9502d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,8 +315,8 @@ func init() {
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 {
return "standard"