outposts: include hostname in outpost heartbeat

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-12-28 16:02:16 +01:00
parent a148e611f3
commit 2b2323fae7
6 changed files with 38 additions and 11 deletions

View File

@ -49,11 +49,7 @@ func (ac *APIController) initWS(akURL url.URL, outpostUUID string) error {
// Send hello message with our version
msg := websocketMessage{
Instruction: WebsocketInstructionHello,
Args: map[string]interface{}{
"version": constants.VERSION,
"buildHash": constants.BUILD("tagged"),
"uuid": ac.instanceUUID.String(),
},
Args: ac.getWebsocketArgs(),
}
err = ws.WriteJSON(msg)
if err != nil {
@ -163,11 +159,7 @@ func (ac *APIController) startWSHealth() {
for ; true; <-ticker.C {
aliveMsg := websocketMessage{
Instruction: WebsocketInstructionHello,
Args: map[string]interface{}{
"version": constants.VERSION,
"buildHash": constants.BUILD("tagged"),
"uuid": ac.instanceUUID.String(),
},
Args: ac.getWebsocketArgs(),
}
if ac.wsConn == nil {
go ac.reconnectWS()