diff options
Diffstat (limited to 'src/upstream.c')
-rw-r--r-- | src/upstream.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/upstream.c b/src/upstream.c index cfab56f..dd91817 100644 --- a/src/upstream.c +++ b/src/upstream.c @@ -26,7 +26,6 @@ #include "upstream.h" #include "heap.h" -#include "main.h" #include "log.h" #ifdef UPSTREAM_SUPPORT @@ -165,10 +164,8 @@ upstream_cleanup: /* * Check if a host is in the upstream list */ -struct upstream *upstream_get (char *host) +struct upstream *upstream_get (char *host, struct upstream *up) { - struct upstream *up = config.upstream_list; - in_addr_t my_ip = INADDR_NONE; while (up) { |