Skip to content
Snippets Groups Projects
Commit 44424c5c authored by kr328's avatar kr328
Browse files

Improve: disable proxy group lazy url-test

parent e4c27ac2
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ var processors = []processor{ ...@@ -22,6 +22,7 @@ var processors = []processor{
patchProfile, patchProfile,
patchDns, patchDns,
patchProviders, patchProviders,
patchProxyGroup,
validConfig, validConfig,
} }
...@@ -85,6 +86,14 @@ func patchProviders(cfg *config.RawConfig, profileDir string) error { ...@@ -85,6 +86,14 @@ func patchProviders(cfg *config.RawConfig, profileDir string) error {
return nil 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 { func validConfig(cfg *config.RawConfig, _ string) error {
if len(cfg.Proxy) == 0 && len(cfg.ProxyProvider) == 0 { if len(cfg.Proxy) == 0 && len(cfg.ProxyProvider) == 0 {
return errors.New("profile does not contain `proxies` or `proxy-providers`") return errors.New("profile does not contain `proxies` or `proxy-providers`")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment