Fix: missing health check instance
This commit is contained in:
parent
af40048841
commit
37603735bd
1 changed files with 2 additions and 1 deletions
|
@ -314,7 +314,8 @@ func parseProxies(cfg *rawConfig) (proxies map[string]C.Proxy, providersMap map[
|
||||||
for _, v := range proxyList {
|
for _, v := range proxyList {
|
||||||
ps = append(ps, proxies[v])
|
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
|
providersMap[provider.ReservedName] = pd
|
||||||
|
|
||||||
global := outboundgroup.NewSelector("GLOBAL", []provider.ProxyProvider{pd})
|
global := outboundgroup.NewSelector("GLOBAL", []provider.ProxyProvider{pd})
|
||||||
|
|
Loading…
Reference in a new issue