upstream: Add upstream list parameter to upstream_get()
to abstract it from the concrete list in the config struct. Now upstream.c does not use any reference to config any more. Michael
This commit is contained in:
1 parent
22fba83df2
commit
4a8ea0d23b
3 files changed
+3
-6
No files matched your search
+1
-1
@@ -58,7 +58,7 @@
|
||||
*/
|
||||
#ifdef UPSTREAM_SUPPORT
|
||||
# define UPSTREAM_CONFIGURED() (config.upstream_list != NULL)
|
||||
# define UPSTREAM_HOST(host) upstream_get(host)
|
||||
# define UPSTREAM_HOST(host) upstream_get(host, config.upstream_list)
|
||||
#else
|
||||
# define UPSTREAM_CONFIGURED() (0)
|
||||
# define UPSTREAM_HOST(host) (NULL)
|
||||
|
||||
Reference in new issue
Block a user