Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-16 21:47:38 -05:00
parent 99df37ee8a
commit 25b0709668
2 changed files with 1 additions and 11 deletions

12
http.go
View File

@ -20,16 +20,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
var tmp string
tmp = cleanURL(r.URL.Path)
// list all the droplets
if tmp == "/droplets" {
log.Info("Handling URL:", tmp)
for _, d := range me.droplets {
dur := time.Since(d.lastpoll) // Calculate the elapsed time
fmt.Fprintln(w, d.Hostname, d.hname, shell.FormatDuration(dur))
}
return
}
// is the cluster running what it should?
if tmp == "/droplets" {
for _, d := range me.droplets {
@ -94,7 +84,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
log.Warn("BAD URL =", tmp)
fmt.Fprintln(w, "BAD ZOOT")
fmt.Fprintln(w, "BAD URL", tmp)
// badurl(w, r.URL.String())
// fmt.Fprintln(w, "BAD", tmp)
}

BIN
resources/ipv6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB