update: add name option for pools with same names
This commit is contained in:
@ -105,7 +105,12 @@ int config_load_handler(void *data, const char *_section, const char *_key, cons
|
||||
if (!config_pool_contains(section))
|
||||
config_pool_add(section);
|
||||
|
||||
if (eq(key, "host")) {
|
||||
if (eq(key, "name")) {
|
||||
free(config.pools->name);
|
||||
config.pools->name = strdup(value);
|
||||
}
|
||||
|
||||
else if (eq(key, "host")) {
|
||||
free(config.pools->host);
|
||||
config.pools->host = strdup(value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user