don't health check asset mappers

This commit is contained in:
Umputun 2021-04-17 23:28:12 -05:00
parent afbcc6c7bb
commit f246618622

View File

@ -35,7 +35,7 @@ func (h *Http) healthHandler(w http.ResponseWriter, _ *http.Request) {
pinged := 0
var wg sync.WaitGroup
for _, m := range mappers {
if m.PingURL == "" {
if m.MatchType != discovery.MTProxy || m.PingURL == "" {
continue
}
sema <- struct{}{}