1
0
Fork 0

fix healthcheck when web is not specified

This commit is contained in:
SALLEYRON Julien 2017-12-06 11:20:03 +01:00 committed by Traefiker
parent 6333bfe6e8
commit 0e619369fd
2 changed files with 6 additions and 3 deletions

View file

@ -64,6 +64,9 @@ func healthCheck(globalConfiguration configuration.GlobalConfiguration) (*http.R
}
client.Transport = tr
}
return client.Head(protocol + "://" + pingEntryPoint.Address + globalConfiguration.Web.Path + "ping")
path := "/"
if globalConfiguration.Web != nil {
path = globalConfiguration.Web.Path
}
return client.Head(protocol + "://" + pingEntryPoint.Address + path + "ping")
}