aboutsummaryrefslogtreecommitdiff
path: root/src/Config.c
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-08-05 18:57:18 -0400
committerfrosty <gabriel@bwaaa.monster>2026-08-05 18:57:18 -0400
commit296021e0ce7e27db837638076c3316a4af35b1b7 (patch)
treeadc521936be16b9e3e5ef639868f3adc2ccaf784 /src/Config.c
parent2419dec7f863dfc7c1824b00445ff9a06c837f80 (diff)
parent11acc93f4357b86e2ca3a74e549193d84ab685f4 (diff)
downloadomnisearch-296021e0ce7e27db837638076c3316a4af35b1b7.tar.gz
Merge branch 'indev-yacy' into indev
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) {