diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-05-04 20:42:12 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-05-04 20:43:27 -0400 |
| commit | ba6dae676a5c268d6b4265d26b9556ba1cfa6923 (patch) | |
| tree | a556a64316856f9426924b21d1824632f92c6b84 /src/Config.c | |
| parent | a9db276fd872951769451142137a5e0f88ed15bc (diff) | |
| download | omnisearch-ba6dae676a5c268d6b4265d26b9556ba1cfa6923.tar.gz | |
feat: remove domain field from config and derive domain from headers
Diffstat (limited to 'src/Config.c')
| -rw-r--r-- | src/Config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Config.c b/src/Config.c index 967a4b4..9883d45 100644 --- a/src/Config.c +++ b/src/Config.c @@ -65,11 +65,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(key, "locale") == 0) { - strncpy(config->default_locale, value, sizeof(config->default_locale) - 1); + strncpy(config->default_locale, value, + sizeof(config->default_locale) - 1); config->default_locale[sizeof(config->default_locale) - 1] = '\0'; } } else if (strcmp(section, "proxy") == 0) { |
