summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-15 10:00:34 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-15 14:23:06 +0200
commit3bfdf6b4778d9b2814c51f121ac3d53eec22c9e1 (patch)
treefc8cdeb7d2549ee1cf7dff4fca53d70e03372b0c
parent88330288e66320df4b243ce77ca90bf3f91e66d7 (diff)
rest: add default value to og_set_client_mode vga field
Define a default value of 788 for the vga field to assign the value from ogServer instead of modifying it through the legacy script setclientmode.
-rw-r--r--src/rest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rest.c b/src/rest.c
index d415f0f..2b8fbaf 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -1321,10 +1321,10 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *mac,
"IF(aulas.dns<>'', CONCAT(' ogdns=', aulas.dns), ''), "
"IF(aulas.proxy<>'', CONCAT(' ogproxy=', aulas.proxy), ''), "
"IF(entidades.ogunit=1 AND NOT centros.directorio='', CONCAT(' ogunit=', centros.directorio), ''), "
- "CASE WHEN menus.resolucion IS NULL THEN '' "
+ "CASE WHEN menus.resolucion IS NULL THEN ' vga=788' "
"WHEN menus.resolucion <= '999' THEN CONCAT(' vga=', menus.resolucion) "
"WHEN menus.resolucion LIKE '%:%' THEN CONCAT(' video=', menus.resolucion) "
- "ELSE menus.resolucion END "
+ "ELSE ' vga=788' END "
"FROM ordenadores "
"JOIN aulas USING(idaula) "