diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 4071b61..29b400d 100644
|
a
|
b
|
ngx_http_core_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
| 4343 | 4343 | ch = value[i].data[0]; |
| 4344 | 4344 | |
| 4345 | 4345 | if ((ch == '*' && (value[i].len < 3 || value[i].data[1] != '.')) |
| 4346 | | || (ch == '.' && value[i].len < 2)) |
| | 4346 | || (ch == '.' && value[i].len < 2) |
| | 4347 | || value[i].data[value[i].len - 1] == '.') |
| 4347 | 4348 | { |
| 4348 | 4349 | ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
| 4349 | 4350 | "server name \"%V\" is invalid", &value[i]); |