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:
parent
3aba653038
commit
66bc6f97af
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue