From 79d984ee8e1ea85b8f30c72e5c1783edc979c59a Mon Sep 17 00:00:00 2001 From: Adlyq <2833154405@qq.com> Date: Wed, 23 Mar 2022 13:29:11 +0800 Subject: [PATCH] [Fix] url-test npe --- config/config.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/config/config.go b/config/config.go index 3f52abb2..3203e452 100644 --- a/config/config.go +++ b/config/config.go @@ -196,7 +196,6 @@ type RawConfig struct { RoutingMark int `yaml:"routing-mark"` GeodataMode bool `yaml:"geodata-mode"` GeodataLoader string `yaml:"geodata-loader"` - AutoIptables bool `yaml:"auto-iptables"` ProxyProvider map[string]map[string]any `yaml:"proxy-providers"` RuleProvider map[string]map[string]any `yaml:"rule-providers"` @@ -230,7 +229,6 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) { Mode: T.Rule, GeodataMode: C.GeodataMode, GeodataLoader: "memconservative", - AutoIptables: false, UnifiedDelay: false, Authentication: []string{}, LogLevel: log.INFO, @@ -466,18 +464,6 @@ func parseProxies(cfg *RawConfig) (proxies map[string]C.Proxy, providersMap map[ proxies[groupName] = adapter.NewProxy(group) } - // initial compatible provider - for _, pd := range providersMap { - if pd.VehicleType() != providerTypes.Compatible { - continue - } - - log.Infoln("Start initial compatible provider %s", pd.Name()) - if err := pd.Initial(); err != nil { - return nil, nil, err - } - } - var ps []C.Proxy for _, v := range proxyList { ps = append(ps, proxies[v])