diff --git a/src/conf.c b/src/conf.c index 269941e..b16b8e9 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1046,8 +1046,8 @@ static HANDLE_FUNC (handle_upstream) return -1; port = (int) get_long_arg (line, &match[7]); - if (match[9].rm_so != -1) { - domain = get_string_arg (line, &match[9]); + if (match[10].rm_so != -1) { + domain = get_string_arg (line, &match[10]); if (domain) { upstream_add (ip, port, domain, &conf->upstream_list); safefree (domain);