aboutsummaryrefslogtreecommitdiff
path: root/src/Config.c
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-08-03 23:21:41 -0400
committerfrosty <gabriel@bwaaa.monster>2026-08-03 23:21:41 -0400
commit7b587d82c874df275f147eb461f6389163547e4e (patch)
treefc6ce57519cee8098d5864e17a8c18b46ce94e20 /src/Config.c
parent953937cfa2bb0fefc2e6e13cf19e34a09fa045dc (diff)
downloadomnisearch-7b587d82c874df275f147eb461f6389163547e4e.tar.gz
feat: add yacy support
Diffstat (limited to 'src/Config.c')
-rw-r--r--src/Config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Config.c b/src/Config.c
index 9883d45..bde76fe 100644
--- a/src/Config.c
+++ b/src/Config.c
@@ -100,6 +100,10 @@ int load_config(const char *filename, Config *config) {
if (strcmp(key, "engines") == 0) {
strncpy(config->engines, value, sizeof(config->engines) - 1);
config->engines[sizeof(config->engines) - 1] = '\0';
+ } else if (strcmp(key, "yacy_instance") == 0) {
+ strncpy(config->yacy_instance, value,
+ sizeof(config->yacy_instance) - 1);
+ config->yacy_instance[sizeof(config->yacy_instance) - 1] = '\0';
}
} else if (strcmp(section, "rate_limit") == 0) {
if (strcmp(key, "search_requests") == 0) {