mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-04 12:03:43 +02:00
src/server.go: add "host" as a optional fourth parameter.
This commit is contained in:
parent
3aba653038
commit
66bc6f97af
1 changed files with 4 additions and 0 deletions
|
|
@ -154,6 +154,10 @@ func main() {
|
||||||
version = split[2]
|
version = split[2]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(split) > 3 {
|
||||||
|
params.Host = split[3]
|
||||||
|
}
|
||||||
|
|
||||||
// Check api.
|
// Check api.
|
||||||
var status haproxy.HealthCheckStatus
|
var status haproxy.HealthCheckStatus
|
||||||
var msg string
|
var msg string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue