This commit is contained in:
2021-12-27 16:16:41 +01:00
parent ce91fecc80
commit 9eaa644fa1
4 changed files with 134 additions and 49 deletions

View File

@ -34,7 +34,7 @@ struct timeval client_timeout;
host_config *get_host_config(const char *host) {
for (int i = 0; i < CONFIG_MAX_HOST_CONFIG; i++) {
host_config *hc = &config[i];
host_config *hc = &config->hosts[i];
if (hc->type == CONFIG_TYPE_UNSET) break;
if (strcmp(hc->name, host) == 0) return hc;
}