From e080fd5526949a5615ae391ea9dda8b70c95f345 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Mon, 28 Aug 2023 12:29:33 +0200 Subject: rest: add "server=" boot param in set client mode Store a client associated ogserver ip address in "server=" boot param. Use this boot param to lookup for network-specific ogClient configuration when launching ogClient during ogLive booting process. --- src/rest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rest.c b/src/rest.c index 2893de7..9b441fe 100644 --- a/src/rest.c +++ b/src/rest.c @@ -1108,6 +1108,7 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *mac, "' ogshare=', @serverip, " "' oglivedir=', ordenadores.oglivedir, " "' ogprof=', IF(ordenadores.idordenador=aulas.idordprofesor, 'true', 'false'), " + "' server=', @ipserveradm, " "IF(perfileshard.descripcion<>'', CONCAT(' hardprofile=', REPLACE(TRIM(perfileshard.descripcion), ' ', '_')), ''), " "IF(aulas.ntp<>'', CONCAT(' ogntp=', aulas.ntp), ''), " "IF(aulas.dns<>'', CONCAT(' ogdns=', aulas.dns), ''), " -- cgit v1.2.3-18-g5258