[BB#91] Fix upstream proxy support.

Patch by Jordi Mallach.
This commit is contained in:
Michael Adam 2010-08-24 22:47:35 +02:00
parent 4b75b634d9
commit 5012ce690f

View File

@ -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);