odissey: make listen host mandatory

This commit is contained in:
Dmitry Simonenko 2017-07-13 15:18:46 +03:00
parent 50d3435eac
commit 9cc6411c04
1 changed files with 4 additions and 2 deletions

View File

@ -193,8 +193,10 @@ int od_scheme_validate(od_scheme_t *scheme, od_log_t *log)
}
/* listen */
if (scheme->host == NULL)
scheme->host = "*";
if (scheme->host == NULL) {
od_error(log, "config", "listen host is not defined");
return -1;
}
/* tls */
if (scheme->tls) {