rest: set center in /repository/add

Set it to 1, ogCP and ogCLI never use this, and this REST API is never
used by the old web console.
master
OpenGnSys Support Team 2023-11-23 12:48:00 +01:00
parent 9c69f112de
commit 2140012535
1 changed files with 3 additions and 1 deletions

View File

@ -5400,7 +5400,9 @@ static int og_cmd_post_repository_add(json_t *element,
struct og_msg_params *params,
char *buffer_reply)
{
struct og_repository repo = {};
struct og_repository repo = {
.center = 1, /* never used, set it to 1. */
};
const char *key, *msglog;
struct in_addr addr;
struct og_dbi *dbi;