summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
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" {