1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-19 05:10:02 +02:00

src/server.go: add "host" as a optional fourth parameter.

This commit is contained in:
Henrik Hautakoski 2020-06-23 12:51:46 +02:00
parent 3aba653038
commit 66bc6f97af

View file

@ -154,6 +154,10 @@ func main() {
version = split[2]
}
if len(split) > 3 {
params.Host = split[3]
}
// Check api.
var status haproxy.HealthCheckStatus
var msg string