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
@@ -42,7 +42,7 @@ struct upstream {
|
||||
#ifdef UPSTREAM_SUPPORT
|
||||
extern void upstream_add (const char *host, int port, const char *domain,
|
||||
struct upstream **upstream_list);
|
||||
struct upstream *upstream_get (char *host);
|
||||
extern struct upstream *upstream_get (char *host, struct upstream *up);
|
||||
#endif /* UPSTREAM_SUPPORT */
|
||||
|
||||
#endif /* _TINYPROXY_UPSTREAM_H_ */
|
||||
Reference in new issue
Block a user