fix: only force health check compatible providers

This commit is contained in:
Skyxim 2023-11-13 08:06:51 +00:00
parent 7979eb654f
commit d85d8ac13f

View file

@ -310,7 +310,9 @@ func loadProxyProvider(proxyProviders map[string]provider.ProxyProvider) {
go func() { go func() {
defer func() { <-ch; wg.Done() }() defer func() { <-ch; wg.Done() }()
loadProvider(proxyProvider) loadProvider(proxyProvider)
go proxyProvider.HealthCheck() if proxyProvider.VehicleType()==provider.Compatible{
go proxyProvider.HealthCheck()
}
}() }()
} }