Addition of routing module diagnostics and options
readconnroute now support the options slave and master to restrict the set of servers it will connect to
This commit is contained in:
@ -175,6 +175,7 @@ CONFIG_CONTEXT *obj;
|
||||
else if (!strcmp(type, "service"))
|
||||
{
|
||||
char *servers = config_get_value(obj->parameters, "servers");
|
||||
char *roptions = config_get_value(obj->parameters, "router_options");
|
||||
if (servers)
|
||||
{
|
||||
char *s = strtok(servers, ",");
|
||||
@ -190,6 +191,15 @@ CONFIG_CONTEXT *obj;
|
||||
s = strtok(NULL, ",");
|
||||
}
|
||||
}
|
||||
if (roptions)
|
||||
{
|
||||
char *s = strtok(roptions, ",");
|
||||
while (s)
|
||||
{
|
||||
serviceAddRouterOption(obj->element, s);
|
||||
s = strtok(NULL, ",");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!strcmp(type, "listener"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user