[BB#91] Fix upstream proxy support.
Patch by Jordi Mallach.
This commit is contained in:
parent
52cad36352
commit
b672ca03fe
@ -1046,8 +1046,8 @@ static HANDLE_FUNC (handle_upstream)
|
|||||||
return -1;
|
return -1;
|
||||||
port = (int) get_long_arg (line, &match[7]);
|
port = (int) get_long_arg (line, &match[7]);
|
||||||
|
|
||||||
if (match[9].rm_so != -1) {
|
if (match[10].rm_so != -1) {
|
||||||
domain = get_string_arg (line, &match[9]);
|
domain = get_string_arg (line, &match[10]);
|
||||||
if (domain) {
|
if (domain) {
|
||||||
upstream_add (ip, port, domain, &conf->upstream_list);
|
upstream_add (ip, port, domain, &conf->upstream_list);
|
||||||
safefree (domain);
|
safefree (domain);
|
||||||
|
Loading…
Reference in New Issue
Block a user