From ddb0676b647362e57395da9e6d273a5b08dcea4e Mon Sep 17 00:00:00 2001 From: Fabio1988 Date: Tue, 26 Sep 2023 12:32:11 +0200 Subject: [PATCH] update host on init --- routes/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/controller.go b/routes/controller.go index 4c5135b..fd3283f 100644 --- a/routes/controller.go +++ b/routes/controller.go @@ -111,6 +111,7 @@ func handleInit(c *gin.Context, req ControllerBody, workerState *worker.State) { log.Infof("[CONTROLLER] [%s] Allocated area %d:%s to worker", req.Uuid, workerState.AreaId, a.Name) assigned = true } + workerState.Touch(c.RemoteIP()) respondWithData(c, &map[string]any{ "assigned": assigned, "version": Version,