summaryrefslogtreecommitdiff
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index 973dc84..abb6201 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -802,11 +802,11 @@ static HANDLE_FUNC (handle_upstream)
if (match[9].rm_so != -1) {
domain = get_string_arg (line, &match[9]);
if (domain) {
- upstream_add (ip, port, domain);
+ upstream_add (ip, port, domain, &conf->upstream_list);
safefree (domain);
}
} else {
- upstream_add (ip, port, NULL);
+ upstream_add (ip, port, NULL, &conf->upstream_list);
}
safefree (ip);
@@ -822,7 +822,7 @@ static HANDLE_FUNC (handle_upstream_no)
if (!domain)
return -1;
- upstream_add (NULL, 0, domain);
+ upstream_add (NULL, 0, domain, &conf->upstream_list);
safefree (domain);
return 0;