feat: remove domain field from config and derive domain from headers

This commit is contained in:
frosty
2026-05-04 20:43:27 -04:00
parent a9db276fd8
commit ba6dae676a
4 changed files with 30 additions and 12 deletions
+2 -4
View File
@@ -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) {