new: add pool path option

This commit is contained in:
ngn
2024-08-10 23:56:33 +03:00
parent 9f18a78aa0
commit a93feb77d0
4 changed files with 27 additions and 15 deletions

View File

@ -110,6 +110,11 @@ int config_load_handler(void *data, const char *_section, const char *_key, cons
config.pools->host = strdup(value);
}
else if (eq(key, "path")) {
free(config.pools->path);
config.pools->path = strdup(value);
}
else if (eq(key, "dir")) {
free(config.pools->dir);
config.pools->dir = strdup(value);