From 37603735bd8b8538209bd1bfa2b6d29c0ed72e13 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Thu, 26 Dec 2019 18:45:18 +0800 Subject: [PATCH] Fix: missing health check instance --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index d867282a..617bdde4 100644 --- a/config/config.go +++ b/config/config.go @@ -314,7 +314,8 @@ func parseProxies(cfg *rawConfig) (proxies map[string]C.Proxy, providersMap map[ for _, v := range proxyList { ps = append(ps, proxies[v]) } - pd, _ := provider.NewCompatibleProvier(provider.ReservedName, ps, nil) + hc := provider.NewHealthCheck(ps, "", 0) + pd, _ := provider.NewCompatibleProvier(provider.ReservedName, ps, hc) providersMap[provider.ReservedName] = pd global := outboundgroup.NewSelector("GLOBAL", []provider.ProxyProvider{pd})