mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Fix health check endpoint (#4231)
Signed-off-by: Serge Logvinov <serge.logvinov@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ func (h *health) overloaded() {
|
|||||||
client := http.Client{
|
client := http.Client{
|
||||||
Timeout: timeout,
|
Timeout: timeout,
|
||||||
}
|
}
|
||||||
url := "http://" + h.Addr
|
url := "http://" + h.Addr + "/health"
|
||||||
tick := time.NewTicker(1 * time.Second)
|
tick := time.NewTicker(1 * time.Second)
|
||||||
defer tick.Stop()
|
defer tick.Stop()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user