Recognise dot prefixed endpoints in admin info (#2868)

Fixes #2867
This commit is contained in:
Praveen raj Mani
2019-08-18 10:25:03 +05:30
committed by Nitish Tiwari
parent 64d45ac35a
commit 89d30e9aa2
+1 -1
View File
@@ -168,7 +168,7 @@ func (u infoMessage) String() (msg string) {
downBackends := 0
for _, set := range v.Sets {
for _, s := range set {
if strings.Contains(s.Endpoint, u.Addr) || s.Endpoint[0] == '/' {
if strings.Contains(s.Endpoint, u.Addr) || s.Endpoint[0] == '/' || s.Endpoint[0] == '.' {
if s.State == "ok" {
upBackends++
} else {