From 44424c5c9ecc7b79d0426d0b070acbc8af2c69ef Mon Sep 17 00:00:00 2001 From: kr328 Date: Sat, 15 May 2021 10:58:07 +0800 Subject: [PATCH] Improve: disable proxy group lazy url-test --- core/src/main/golang/config/process.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/golang/config/process.go b/core/src/main/golang/config/process.go index 27db16ef..877f5f18 100644 --- a/core/src/main/golang/config/process.go +++ b/core/src/main/golang/config/process.go @@ -22,6 +22,7 @@ var processors = []processor{ patchProfile, patchDns, patchProviders, + patchProxyGroup, validConfig, } @@ -85,6 +86,14 @@ func patchProviders(cfg *config.RawConfig, profileDir string) error { return nil } +func patchProxyGroup(cfg *config.RawConfig, _ string) error { + for _, g := range cfg.ProxyGroup { + g["lazy"] = false + } + + return nil +} + func validConfig(cfg *config.RawConfig, _ string) error { if len(cfg.Proxy) == 0 && len(cfg.ProxyProvider) == 0 { return errors.New("profile does not contain `proxies` or `proxy-providers`")