RMPS: validate IPs for listeners
This commit is contained in:
@@ -299,7 +299,7 @@ static bool test_conf_syntax(char *config)
|
||||
} else if (!strcmp(line, "db.pass"))
|
||||
asprintf(&conf.db.pass, "%s", val_ptr);
|
||||
else if (!strcmp(line, "rmps.agent_ip")) {
|
||||
/* TODO */
|
||||
asprintf(&conf.rmps.agent_ip, "%s", val_ptr);
|
||||
} else if (!strcmp(line, "rmps.agent_port")) {
|
||||
i = strlen(val_ptr);
|
||||
if (i < 6) { /* max 5 digits for network port */
|
||||
@@ -316,7 +316,7 @@ static bool test_conf_syntax(char *config)
|
||||
val_ok = false;
|
||||
failed = true;
|
||||
} else if (!strcmp(line, "rmps.client_ip")) {
|
||||
/* TODO */
|
||||
asprintf(&conf.rmps.client_ip, "%s", val_ptr);
|
||||
} else if (!strcmp(line, "rmps.client_port")) {
|
||||
i = strlen(val_ptr);
|
||||
if (i < 6) { /* max 5 digits for network port */
|
||||
|
||||
Reference in New Issue
Block a user