forked from Ivasoft/traefik
fix healthcheck when web is not specified
This commit is contained in:
committed by
Traefiker
parent
6333bfe6e8
commit
0e619369fd
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user