feature: moved domain for opensearch to config

This commit is contained in:
frosty
2026-03-18 04:10:30 -04:00
parent e1ad06ea25
commit 9dc056dc40
5 changed files with 21 additions and 5 deletions

View File

@@ -63,6 +63,9 @@ int load_config(const char *filename, Config *config) {
config->host[sizeof(config->host) - 1] = '\0';
} else if (strcmp(key, "port") == 0) {
config->port = atoi(value);
} else if (strcmp(key, "domain") == 0) {
strncpy(config->domain, value, sizeof(config->domain) - 1);
config->domain[sizeof(config->domain) - 1] = '\0';
}
} else if (strcmp(section, "proxy") == 0) {
if (strcmp(key, "proxy") == 0) {