Max Ma 11 місяців тому
батько
коміт
79955a6b54
2 змінених файлів з 2 додано та 0 видалено
  1. 1 0
      controllers/hosts.go
  2. 1 0
      models/structs.go

+ 1 - 0
controllers/hosts.go

@@ -216,6 +216,7 @@ func pull(w http.ResponseWriter, r *http.Request) {
 
 	hu := hostactions.GetAction(hostID)
 	if hu != nil {
+		response.Action = models.SignalHost
 		response.Signal = hu.Signal
 	}
 

+ 1 - 0
models/structs.go

@@ -227,6 +227,7 @@ type HostPull struct {
 	DefaultGwIp       net.IP                `json:"default_gw_ip"`
 	IsInternetGw      bool                  `json:"is_inet_gw"`
 	EndpointDetection bool                  `json:"endpoint_detection"`
+	Action            HostMqAction          `json:"action"`
 	Signal            Signal                `json:"signal"`
 }