mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-22 05:16:08 +03:00
Improve: disable proxy group lazy url-test
This commit is contained in:
parent
e4c27ac233
commit
44424c5c9e
@ -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`")
|
||||
|
Loading…
Reference in New Issue
Block a user