summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-06 05:16:00 -0600
committerJeff Carr <[email protected]>2025-03-06 05:34:25 -0600
commite85a8ae69f538147f969859ea45af6048fce243c (patch)
tree2a90f5f94656fb9a7404b538373318f2141c5e76 /http.go
parent8c7f6c3c1be68c3ac350c4b611e08ed8b23bd3a8 (diff)
talking with zood again
Diffstat (limited to 'http.go')
-rw-r--r--http.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/http.go b/http.go
index 2b70d8e..baebf24 100644
--- a/http.go
+++ b/http.go
@@ -41,31 +41,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
if route == "/machine" {
handleMachine(r, w, hostname, msg)
return
-
- /*
- var m *zoopb.Machine
- m = new(zoopb.Machine)
- if err := m.Unmarshal(msg); err != nil {
- log.Info("zoo host sent unknown machine protobuf len", len(msg))
- forgepb.IdentifyProtobuf(msg)
- log.Info("error =", err)
- return
- }
- log.Log(INFO, "proto.Unmarshal() worked on wire message len", len(msg), "from", m.Hostname)
- b := me.upgrade[m.Hostname]
- switch updateMachine(m) {
- case "upgrade":
- if b {
- fmt.Fprintln(w, "apt update")
- me.upgrade[m.Hostname] = false
- } else {
- fmt.Fprintln(w, "upgrade")
- }
- default:
- fmt.Fprintln(w, "notsure")
- }
- return
- */
}
if route == "/status" {